diff options
author | Ken Moore <moorekou@gmail.com> | 2015-09-08 13:19:03 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-09-08 13:19:03 -0400 |
commit | 57909d892e0794b805851d88cdb0c2d2f0469e91 (patch) | |
tree | b5577e269384f0973d19a6154eeebb4cdefbb0e3 /lumina-fm/MainUI.cpp | |
parent | Merge branch 'master' of github.com:pcbsd/lumina (diff) | |
download | lumina-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.cpp | 8 |
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); |