mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Cleanup scanner if there were no new and no obsolete tracks found.
This commit is contained in:
@@ -192,6 +192,9 @@ MusicScanner::listerFinished()
|
||||
m_filesToDelete << m_filemtimes[ key ].keys().first();
|
||||
|
||||
commitBatch( m_scannedfiles, m_filesToDelete );
|
||||
|
||||
if ( m_filesToDelete.length() || m_scannedfiles.length() )
|
||||
{
|
||||
m_scannedfiles.clear();
|
||||
m_filesToDelete.clear();
|
||||
|
||||
@@ -199,6 +202,9 @@ MusicScanner::listerFinished()
|
||||
tDebug( LOGEXTRA ) << "Skipped the following files (no tags / no valid audio):";
|
||||
foreach ( const QString& s, m_skippedFiles )
|
||||
tDebug( LOGEXTRA ) << s;
|
||||
}
|
||||
else
|
||||
cleanup();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user