C++: Only start/stop timers from the UI thread.

Change-Id: Ib694d2aeaef3b62caf3d3624e6b1c3e643197c2d
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Erik Verbruggen
2014-11-17 15:00:56 +01:00
parent 3aebcdc540
commit 6cfd843580

View File

@@ -76,9 +76,7 @@ QString StringTable::insert(const QString &string)
void StringTable::scheduleGC() void StringTable::scheduleGC()
{ {
QMutexLocker locker(&m_lock); QMetaObject::invokeMethod(&m_gcCountDown, "start", Qt::QueuedConnection);
m_gcCountDown.start();
} }
void StringTable::startGC() void StringTable::startGC()