Commit d587789c authored by Daniel Teske's avatar Daniel Teske
Browse files

DocumentManager: Ensure that checkForReload is called after modal dialog



Task-number: QTCREATORBUG-11727

Change-Id: Ia20b4556206571f5605f4133521c146ad164426a
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 5d3c0701
...@@ -901,9 +901,14 @@ void DocumentManager::checkForReload() ...@@ -901,9 +901,14 @@ void DocumentManager::checkForReload()
{ {
if (d->m_changedFiles.isEmpty()) if (d->m_changedFiles.isEmpty())
return; return;
if (!QApplication::activeWindow() || QApplication::activeModalWidget()) if (!QApplication::activeWindow())
return; return;
if (QApplication::activeModalWidget()) { // a modal dialog, recheck later
QTimer::singleShot(200, this, SLOT(checkForReload()));
return;
}
if (d->m_blockActivated) if (d->m_blockActivated)
return; return;
......
Supports Markdown
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