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