Add Close button to window asking what to do with changed documents

Add a close button to window asking what to do with documents that
were changed outside Creator. Finally a simple way to get rid of
open moc-files that trigger this window over and over again:-)

Task-number: QTCREATORBUG-7360
Change-Id: I7a373ed60d85d810caf6604bc7dae7bb7fa186a9
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Tobias Hunger
2012-09-28 14:35:32 +02:00
parent 9c2c8db4ed
commit 0bcf6930d3
3 changed files with 7 additions and 2 deletions

View File

@@ -1034,6 +1034,9 @@ void DocumentManager::checkForReload()
case Utils::ReloadNone:
success = document->reload(&errorString, IDocument::FlagIgnore, IDocument::TypeContents);
break;
case Utils::CloseCurrent:
editorsToClose << EditorManager::instance()->editorsForDocument(document);
break;
}
}
// IDocument wants us to ask, and it's the TypeRemoved case