1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-04 16:12:24 +02:00

Don't unconditionally watch for changes

This commit is contained in:
Jeff Mitchell 2011-06-15 08:59:38 -04:00
parent be86cdd97c
commit fb7f98c1fc

View File

@ -117,7 +117,9 @@ void
ScanManager::scanTimerTimeout()
{
qDebug() << Q_FUNC_INFO;
if ( !Database::instance() || ( Database::instance() && !Database::instance()->isReady() ) )
if ( !TomahawkSettings::instance()->watchForChanges() ||
!Database::instance() ||
( Database::instance() && !Database::instance()->isReady() ) )
return;
else
runScan();