forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user