Changeset View
Changeset View
Standalone View
Standalone View
src/file/fileindexscheduler.cpp
Show First 20 Lines • Show All 250 Lines • ▼ Show 20 Line(s) | |||||
251 | } | 251 | } | ||
252 | 252 | | |||
253 | void FileIndexScheduler::powerManagementStatusChanged(bool isOnBattery) | 253 | void FileIndexScheduler::powerManagementStatusChanged(bool isOnBattery) | ||
254 | { | 254 | { | ||
255 | qCDebug(BALOO) << "Power state changed - onBattery:" << isOnBattery; | 255 | qCDebug(BALOO) << "Power state changed - onBattery:" << isOnBattery; | ||
256 | if (isOnBattery && m_indexerState == ContentIndexing) { | 256 | if (isOnBattery && m_indexerState == ContentIndexing) { | ||
257 | qCDebug(BALOO) << "On battery, stopping content indexer"; | 257 | qCDebug(BALOO) << "On battery, stopping content indexer"; | ||
258 | m_contentIndexer->quit(); | 258 | m_contentIndexer->quit(); | ||
259 | } else if (!isOnBattery) { | 259 | } else { | ||
260 | scheduleIndexing(); | 260 | scheduleIndexing(); | ||
261 | } | 261 | } | ||
262 | } | 262 | } | ||
263 | 263 | | |||
264 | void FileIndexScheduler::setSuspend(bool suspend) | 264 | void FileIndexScheduler::setSuspend(bool suspend) | ||
265 | { | 265 | { | ||
266 | m_isSuspended = suspend; | 266 | m_isSuspended = suspend; | ||
267 | if (suspend) { | 267 | if (suspend) { | ||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |