1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 13:47:26 +02:00

* Cleanup scanner if there were no new and no obsolete tracks found.

This commit is contained in:
Christian Muehlhaeuser
2011-11-22 04:16:27 +01:00
parent 1347736ead
commit 0fba1504f0

View File

@@ -192,6 +192,9 @@ MusicScanner::listerFinished()
m_filesToDelete << m_filemtimes[ key ].keys().first(); m_filesToDelete << m_filemtimes[ key ].keys().first();
commitBatch( m_scannedfiles, m_filesToDelete ); commitBatch( m_scannedfiles, m_filesToDelete );
if ( m_filesToDelete.length() || m_scannedfiles.length() )
{
m_scannedfiles.clear(); m_scannedfiles.clear();
m_filesToDelete.clear(); m_filesToDelete.clear();
@@ -200,6 +203,9 @@ MusicScanner::listerFinished()
foreach ( const QString& s, m_skippedFiles ) foreach ( const QString& s, m_skippedFiles )
tDebug( LOGEXTRA ) << s; tDebug( LOGEXTRA ) << s;
} }
else
cleanup();
}
void void