From: <ibr...@us...> - 2013-11-10 21:07:24
|
Revision: 4931 http://sourceforge.net/p/tora/code/4931 Author: ibre5041 Date: 2013-11-10 21:07:18 +0000 (Sun, 10 Nov 2013) Log Message: ----------- cache Modified Paths: -------------- trunk/tora/src/core/tocache.cpp Modified: trunk/tora/src/core/tocache.cpp =================================================================== --- trunk/tora/src/core/tocache.cpp 2013-11-09 01:14:28 UTC (rev 4930) +++ trunk/tora/src/core/tocache.cpp 2013-11-10 21:07:18 UTC (rev 4931) @@ -125,6 +125,7 @@ { m_threadWorker->setObjectName("toCacheWorker thread"); m_cacheWorker->moveToThread(m_threadWorker); + connect(this, SIGNAL(refreshCache()), m_cacheWorker, SLOT(process())); } toCache::~toCache() @@ -460,11 +461,10 @@ try { setCacheState(toCache::READING_STARTED); QMutexLocker bLock(&backgroundThreadLock); - if(m_threadWorker->isRunning()) + if(!m_threadWorker->isRunning()) m_threadWorker->start(); - /// TODO toTask and toThread are obsolete - ///toTask *t = new toCacheWorker(parentConn); ///(new toThread(t))->start(); + emit refreshCache(); } catch (...) { state = FAILED; return; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |