aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/MainUI.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-09-08 13:19:03 -0400
committerKen Moore <moorekou@gmail.com>2015-09-08 13:19:03 -0400
commit57909d892e0794b805851d88cdb0c2d2f0469e91 (patch)
treeb5577e269384f0973d19a6154eeebb4cdefbb0e3 /lumina-fm/MainUI.cpp
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-57909d892e0794b805851d88cdb0c2d2f0469e91.tar.gz
lumina-57909d892e0794b805851d88cdb0c2d2f0469e91.tar.bz2
lumina-57909d892e0794b805851d88cdb0c2d2f0469e91.zip
Make sure that the removal verification dialog puts the list of items in the "detailed" text of the message box - otherwise it causes size issues if there are lots of items.
Diffstat (limited to 'lumina-fm/MainUI.cpp')
-rw-r--r--lumina-fm/MainUI.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp
index 9d921b7c..9ae681f0 100644
--- a/lumina-fm/MainUI.cpp
+++ b/lumina-fm/MainUI.cpp
@@ -778,9 +778,11 @@ void MainUI::RemoveFiles(QStringList list){
}
//Verify permanent removal of file/dir
- if(QMessageBox::Yes != QMessageBox::question(this, tr("Verify Removal"), tr("WARNING: This will permanently delete the file(s) from the system!")+"\n"+tr("Are you sure you want to continue?")+"\n\n"+names.join("\n"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No) ){
- return; //cancelled
- }
+ QMessageBox dlgQ(QMessageBox::Question, tr("Verify Removal"), tr("WARNING: This will permanently delete the file(s) from the system!")+"\n"+tr("Are you sure you want to continue?"), QMessageBox::Yes | QMessageBox::No, this);
+ dlgQ.setDetailedText(tr("Items to be removed:")+"\n\n"+names.join("\n"));
+ dlgQ.exec();
+ if(dlgQ.result() != QMessageBox::Yes){ return; } //cancelled
+
//Now remove the file/dir
qDebug() << " - Delete: "<<paths;
FODialog dlg(this);
bgstack15