Fix possible race condition

Discovered with change b7fd293098 in Qt master
This commit is contained in:
Olivier Goffart
2010-08-23 18:07:14 +02:00
parent e3b1279f65
commit 46a1c26070

View File

@@ -145,8 +145,8 @@ void LocatorPlugin::extensionsInitialized()
void LocatorPlugin::startSettingsLoad()
{
m_loadWatcher.setFuture(QtConcurrent::run(this, &LocatorPlugin::loadSettings));
connect(&m_loadWatcher, SIGNAL(finished()), this, SLOT(settingsLoaded()));
m_loadWatcher.setFuture(QtConcurrent::run(this, &LocatorPlugin::loadSettings));
}
void LocatorPlugin::loadSettings()