1
0
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:
Jeff Mitchell 2011-09-10 17:13:42 -04:00
parent c78fe2f701
commit 0a07750efb
2 changed files with 2 additions and 1 deletions

View File

@ -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();

View File

@ -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();
}