Commit d587789c authored by Daniel Teske's avatar Daniel Teske

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()
{
if (d->m_changedFiles.isEmpty())
return;
if (!QApplication::activeWindow() || QApplication::activeModalWidget())
if (!QApplication::activeWindow())
return;
if (QApplication::activeModalWidget()) { // a modal dialog, recheck later
QTimer::singleShot(200, this, SLOT(checkForReload()));
return;
}
if (d->m_blockActivated)
return;
......
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