mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +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();
|
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();
|
||||||
|
|
||||||
@@ -199,6 +202,9 @@ MusicScanner::listerFinished()
|
|||||||
tDebug( LOGEXTRA ) << "Skipped the following files (no tags / no valid audio):";
|
tDebug( LOGEXTRA ) << "Skipped the following files (no tags / no valid audio):";
|
||||||
foreach ( const QString& s, m_skippedFiles )
|
foreach ( const QString& s, m_skippedFiles )
|
||||||
tDebug( LOGEXTRA ) << s;
|
tDebug( LOGEXTRA ) << s;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user