DocumentManager: Ensure that checkForReload is called after modal dialog

Task-number: QTCREATORBUG-11727

Change-Id: Ia20b4556206571f5605f4133521c146ad164426a
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Daniel Teske
2014-03-14 13:03:42 +01:00
parent 5d3c070174
commit d587789cd0

View File

@@ -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;