mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 16:29:43 +01:00
How about not telling the source list we're done until we're actually done
This commit is contained in:
parent
c78fe2f701
commit
0a07750efb
@ -253,7 +253,6 @@ MusicScanner::listerFinished( const QMap<QString, unsigned int>& newmtimes )
|
||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO;
|
||||
|
||||
// any remaining stuff that wasnt emitted as a batch:
|
||||
SourceList::instance()->getLocal()->scanningFinished( m_scanned );
|
||||
foreach( QString key, m_filemtimes.keys() )
|
||||
{
|
||||
m_filesToDelete << m_filemtimes[ key ].keys().first();
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "musicscanner.h"
|
||||
#include "tomahawksettings.h"
|
||||
#include "utils/tomahawkutils.h"
|
||||
#include "libtomahawk/sourcelist.h"
|
||||
|
||||
#include "database/database.h"
|
||||
#include "database/databasecommand_dirmtimes.h"
|
||||
@ -177,5 +178,6 @@ ScanManager::scannerFinished()
|
||||
m_musicScannerThreadController = 0;
|
||||
}
|
||||
m_scanTimer->start();
|
||||
SourceList::instance()->getLocal()->scanningFinished( 0 );
|
||||
emit finished();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user