forked from qt-creator/qt-creator
DocumentManager: Check for permission change on every reload
Fixes: QTCREATORBUG-22447 Change-Id: Iae26c01b97340ee4d6bb67a4655534130ba5537f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
dc43cd5236
commit
4b245bbb49
@@ -1186,10 +1186,10 @@ void DocumentManager::checkForReload()
|
|||||||
bool success = true;
|
bool success = true;
|
||||||
QString errorString;
|
QString errorString;
|
||||||
// we've got some modification
|
// we've got some modification
|
||||||
|
document->checkPermissions();
|
||||||
// check if it's contents or permissions:
|
// check if it's contents or permissions:
|
||||||
if (!type) {
|
if (!type) {
|
||||||
// Only permission change
|
// Only permission change
|
||||||
document->checkPermissions();
|
|
||||||
success = true;
|
success = true;
|
||||||
// now we know it's a content change or file was removed
|
// now we know it's a content change or file was removed
|
||||||
} else if (defaultBehavior == IDocument::ReloadUnmodified && type == IDocument::TypeContents
|
} else if (defaultBehavior == IDocument::ReloadUnmodified && type == IDocument::TypeContents
|
||||||
|
Reference in New Issue
Block a user