Changeset View
Changeset View
Standalone View
Standalone View
src/file/fileindexscheduler.cpp
Show First 20 Lines • Show All 242 Lines • ▼ Show 20 Line(s) | |||||
243 | 243 | | |||
244 | void FileIndexScheduler::setSuspend(bool suspend) | 244 | void FileIndexScheduler::setSuspend(bool suspend) | ||
245 | { | 245 | { | ||
246 | m_isSuspended = suspend; | 246 | m_isSuspended = suspend; | ||
247 | if (suspend) { | 247 | if (suspend) { | ||
248 | qCDebug(BALOO) << "Suspending"; | 248 | qCDebug(BALOO) << "Suspending"; | ||
249 | if (m_indexerState == ContentIndexing) { | 249 | if (m_indexerState == ContentIndexing) { | ||
250 | m_contentIndexer->quit(); | 250 | m_contentIndexer->quit(); | ||
251 | } else { | ||||
252 | scheduleIndexing(); | ||||
251 | } | 253 | } | ||
252 | } else { | 254 | } else { | ||
253 | qCDebug(BALOO) << "Resuming"; | 255 | qCDebug(BALOO) << "Resuming"; | ||
254 | // No need to emit here we'll be emitting in scheduling | 256 | // No need to emit here we'll be emitting in scheduling | ||
255 | scheduleIndexing(); | 257 | scheduleIndexing(); | ||
256 | } | 258 | } | ||
257 | } | 259 | } | ||
258 | 260 | | |||
Show All 35 Lines |