1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

Don't start new scans before everything is cleaned up, put them onto the event loop

This commit is contained in:
Jeff Mitchell
2012-06-30 16:47:16 -04:00
parent 5ad53e0af5
commit 4b6e1ea0d7

View File

@@ -281,10 +281,10 @@ ScanManager::scannerFinished()
case Full:
case Normal:
runNormalScan( m_queuedScanType == Full );
QMetaObject::invokeMethod( this, "runNormalScan", Qt::QueuedConnection, Q_ARG( bool, m_queuedScanType == Full ) );
break;
case File:
runFileScan();
QMetaObject::invokeMethod( this, "runFileScan", Qt::QueuedConnection, Q_ARG( QStringList, QStringList() ) );
break;
default:
break;