Commit 46a1c260 authored by Olivier Goffart's avatar Olivier Goffart
Browse files

Fix possible race condition

Discovered with change b7fd293098 in Qt master
parent e3b1279f
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment