Commit 6cfd8435 authored by Erik Verbruggen's avatar Erik Verbruggen

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

Change-Id: Ib694d2aeaef3b62caf3d3624e6b1c3e643197c2d
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 3aebcdc5
......@@ -76,9 +76,7 @@ QString StringTable::insert(const QString &string)
void StringTable::scheduleGC()
{
QMutexLocker locker(&m_lock);
m_gcCountDown.start();
QMetaObject::invokeMethod(&m_gcCountDown, "start", Qt::QueuedConnection);
}
void StringTable::startGC()
......
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