diff --git a/src/smartplaylists/smartplaylistsviewcontainer.cpp b/src/smartplaylists/smartplaylistsviewcontainer.cpp index 970af9ea7..9b89bc494 100644 --- a/src/smartplaylists/smartplaylistsviewcontainer.cpp +++ b/src/smartplaylists/smartplaylistsviewcontainer.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include "core/iconloader.h" #include "core/mimedata.h" @@ -319,6 +320,9 @@ void SmartPlaylistsViewContainer::RestoreDefaultsFromContext() { void SmartPlaylistsViewContainer::RestoreDefaults() { - model_->RestoreDefaults(); + const QMessageBox::StandardButton messagebox_answer = QMessageBox::question(this, tr("Restore defaults"), tr("Are you sure you want to restore the default smart playlists? This will remove all custom smart playlists"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No); + if (messagebox_answer == QMessageBox::Yes) { + model_->RestoreDefaults(); + } }