aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm
diff options
context:
space:
mode:
authorwilliam <william.os4y@gmail.com>2015-03-24 09:03:44 +0100
committerwilliam <william.os4y@gmail.com>2015-03-24 09:03:44 +0100
commitf7811de705dc32d14ea1dfdf2fa370a4e90bd5e8 (patch)
tree5c9e646b0137c63189c090b26e49cf2648508038 /lumina-fm
parentAdd display of the filesystem's capacity in the statusbar (diff)
parentAdd a new information file: DeveloperGuidelines.txt (diff)
downloadlumina-f7811de705dc32d14ea1dfdf2fa370a4e90bd5e8.tar.gz
lumina-f7811de705dc32d14ea1dfdf2fa370a4e90bd5e8.tar.bz2
lumina-f7811de705dc32d14ea1dfdf2fa370a4e90bd5e8.zip
Merge remote-tracking branch 'upstream/master' into fmNumbers
Diffstat (limited to 'lumina-fm')
-rw-r--r--lumina-fm/MainUI.cpp4
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 );
bgstack15