- bool append = false;
- if (playlists.contains(name)) {
- if (QMessageBox::question(this, "Append to playlist?", "Playlist with name \""+name+"\" already exists.\n"
- "Dow you want to append current playlist to it?",
- QMessageBox::Ok, QMessageBox::Cancel) == QMessageBox::Ok) {
- append = true;
- } else {
- append = false;
+ playlists.removeOne(_CURRENT_PLAYLIST_SUBST_);
+ SavePlaylistDialog dialog(this);
+ dialog.setPlaylistNames(playlists);
+ if (dialog.exec() == QDialog::Accepted) {
+ QString name = dialog.selectedName();
+ bool append = false;
+ if (playlists.contains(name)) {
+ if (QMessageBox::question(this, "Append to playlist?", "Playlist with name \""+name+"\" already exists.\n"
+ "Dow you want to append current playlist to it?",
+ QMessageBox::Ok, QMessageBox::Cancel) == QMessageBox::Ok) {
+ append = true;
+ } else {
+ append = false;
+ }