X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=mainwindow.cpp;h=2f8022b2a936647cb28e45819d7691e1d1416ee4;hb=d56668830f982dde4ccda85bd4de71173b89ec90;hp=14cf5ee8e01f94586253fb0e6ec9bd0e44596b63;hpb=b7db42c72cd12a464034045cc17af8cd7a7c8b8b;p=tomamp diff --git a/mainwindow.cpp b/mainwindow.cpp index 14cf5ee..2f8022b 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -504,6 +504,8 @@ void MainWindow::setupActions() void MainWindow::removeSelectedItem() { + if (QMessageBox::question(this, "Confirm remove", "Are you sure you want to remove this item?", QMessageBox::Yes, QMessageBox::No) == QMessageBox::No) + return; int row = musicTable->currentRow(); if (row >= 0) plman.removeItem(row); @@ -511,6 +513,8 @@ void MainWindow::removeSelectedItem() void MainWindow::removeAllButSelectedItem() { + if (QMessageBox::question(this, "Confirm remove", "Are you sure you want to remove all other items?", QMessageBox::Yes, QMessageBox::No) == QMessageBox::No) + return; int row = musicTable->currentRow(); if (row >= 0) {