Fixes: - Freeze on Mac when files change outside of qtcreator

RevBy:    - mae
This commit is contained in:
Eike Ziller
2008-12-02 17:34:00 +01:00
parent 5d316a4919
commit 96732d7040

View File

@@ -463,7 +463,10 @@ void FileManager::changedFile(const QString &file)
void FileManager::mainWindowActivated() void FileManager::mainWindowActivated()
{ {
checkForReload(); //we need to do this asynchronously because
//opening a dialog ("Reload?") in a windowactivated event
//freezes on Mac
QTimer::singleShot(0, this, SLOT(checkForReload()));
} }
void FileManager::checkForReload() void FileManager::checkForReload()