Commit 0ede1a73 authored by hjk's avatar hjk
Browse files

DocumentManager: Use suitable parent for file reload dialog



Change-Id: I77c223b505bc97b64fcc27d5fab3514722ebaa02
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent 2f2e1509
...@@ -965,7 +965,8 @@ void DocumentManager::checkForReload() ...@@ -965,7 +965,8 @@ void DocumentManager::checkForReload()
success = document->reload(&errorString, IDocument::FlagReload, IDocument::TypeContents); success = document->reload(&errorString, IDocument::FlagReload, IDocument::TypeContents);
} else { } else {
// Ask about content change // Ask about content change
previousReloadAnswer = Utils::reloadPrompt(document->filePath(), document->isModified(), QApplication::activeWindow()); previousReloadAnswer = Utils::reloadPrompt(document->filePath(), document->isModified(),
ICore::dialogParent());
switch (previousReloadAnswer) { switch (previousReloadAnswer) {
case Utils::ReloadAll: case Utils::ReloadAll:
case Utils::ReloadCurrent: case Utils::ReloadCurrent:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment