forked from qt-creator/qt-creator
		
	Fixes: - Freeze on Mac when files change outside of qtcreator
RevBy: - mae
This commit is contained in:
		@@ -463,7 +463,10 @@ void FileManager::changedFile(const QString &file)
 | 
			
		||||
 | 
			
		||||
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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user