mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 16:14:40 +02:00
Don't blindly queue scan paths, there may be some queued
This commit is contained in:
@@ -277,8 +277,13 @@ ScanManager::scannerFinished()
|
|||||||
m_musicScannerThreadController = 0;
|
m_musicScannerThreadController = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ( m_queuedScanType ) {
|
SourceList::instance()->getLocal()->scanningFinished( 0 );
|
||||||
|
emit finished();
|
||||||
|
|
||||||
|
if ( !m_queuedScanType == File )
|
||||||
|
m_currScannerPaths.clear();
|
||||||
|
switch ( m_queuedScanType )
|
||||||
|
{
|
||||||
case Full:
|
case Full:
|
||||||
case Normal:
|
case Normal:
|
||||||
QMetaObject::invokeMethod( this, "runNormalScan", Qt::QueuedConnection, Q_ARG( bool, m_queuedScanType == Full ) );
|
QMetaObject::invokeMethod( this, "runNormalScan", Qt::QueuedConnection, Q_ARG( bool, m_queuedScanType == Full ) );
|
||||||
@@ -289,10 +294,7 @@ ScanManager::scannerFinished()
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_queuedScanType = None;
|
m_queuedScanType = None;
|
||||||
|
|
||||||
m_scanTimer->start();
|
m_scanTimer->start();
|
||||||
m_currScannerPaths.clear();
|
|
||||||
SourceList::instance()->getLocal()->scanningFinished( 0 );
|
|
||||||
emit finished();
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user