diff options
Diffstat (limited to 'src/library/library.cpp')
-rw-r--r-- | src/library/library.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/library/library.cpp b/src/library/library.cpp index 136c92c4cb..e82533df1a 100644 --- a/src/library/library.cpp +++ b/src/library/library.cpp @@ -477,19 +477,19 @@ void Library::slotRequestAddDir(QString dir) { void Library::slotRequestRemoveDir(QString dir, RemovalType removalType) { switch (removalType) { - case Library::HideTracks: - // Mark all tracks in this directory as deleted but DON'T purge them - // in case the user re-adds them manually. - m_pTrackCollectionManager->hideAllTracks(dir); - break; - case Library::PurgeTracks: - // The user requested that we purge all metadata. - m_pTrackCollectionManager->purgeAllTracks(dir); - break; - case Library::LeaveTracksUnchanged: - default: - break; - + case RemovalType::KeepTracks: + break; + case RemovalType::HideTracks: + // Mark all tracks in this directory as deleted but DON'T purge them + // in case the user re-adds them manually. + m_pTrackCollectionManager->hideAllTracks(dir); + break; + case RemovalType::PurgeTracks: + // The user requested that we purge all metadata. + m_pTrackCollectionManager->purgeAllTracks(dir); + break; + default: + DEBUG_ASSERT(!"unreachable"); } // Remove the directory from the directory list. |