diff options
Diffstat (limited to 'lumina-fm')
-rw-r--r-- | lumina-fm/MainUI.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index d0684368..d445a9cd 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -1072,6 +1072,10 @@ void MainUI::removePicture(){ QString file = getCurrentDir(); if(!file.endsWith("/")){ file.append("/"); } file.append(ui->combo_image_name->currentText()); + //Verify permanent removal of file/dir + if(QMessageBox::Yes != QMessageBox::question(this, tr("Verify Removal"), tr("WARNING: This will permanently delete the file from the system!")+"\n"+tr("Are you sure you want to continue?")+"\n\n"+file, QMessageBox::Yes | QMessageBox::No, QMessageBox::No) ){ + return; //cancelled + } if( QFile::remove(file) ){ int index = ui->combo_image_name->currentIndex(); ui->combo_image_name->removeItem( index ); |