mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +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();
|
||||
|
||||
@@ -200,6 +203,9 @@ MusicScanner::listerFinished()
|
||||
foreach ( const QString& s, m_skippedFiles )
|
||||
tDebug( LOGEXTRA ) << s;
|
||||
}
|
||||
else
|
||||
cleanup();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user