diff options
author | Ken Moore <moorekou@gmail.com> | 2016-01-05 11:11:15 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-01-05 11:11:15 -0500 |
commit | 0e7f0497f8c53b50183bddccfc9709d924798fcc (patch) | |
tree | eb61d81466e3c3585663ef21e39bf6c308ab4849 /lumina-fm | |
parent | Make sure to round the generated panel size to the nearest pixel rather than ... (diff) | |
download | lumina-0e7f0497f8c53b50183bddccfc9709d924798fcc.tar.gz lumina-0e7f0497f8c53b50183bddccfc9709d924798fcc.tar.bz2 lumina-0e7f0497f8c53b50183bddccfc9709d924798fcc.zip |
Setup the dialog to use for file operation errors as the scroll dialog (in case the list of files is really long).
Diffstat (limited to 'lumina-fm')
-rw-r--r-- | lumina-fm/FODialog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lumina-fm/FODialog.cpp b/lumina-fm/FODialog.cpp index a34e37c9..b9acdc03 100644 --- a/lumina-fm/FODialog.cpp +++ b/lumina-fm/FODialog.cpp @@ -10,6 +10,8 @@ #include <QApplication> #include <QFontMetrics> +#include <ScrollDialog.h> + #define DEBUG 0 FODialog::FODialog(QWidget *parent) : QDialog(parent), ui(new Ui::FODialog){ @@ -163,7 +165,10 @@ void FODialog::WorkDone(QStringList errlist){ else if(Worker->isCP){ msg = tr("Could not copy these files:"); } else if(Worker->isRESTORE){ msg = tr("Could not restore these files:"); } else if(Worker->isMV){ msg = tr("Could not move these files:"); } - QMessageBox::warning(this, tr("File Errors"), msg+"\n\n"+errlist.join("\n")); + ScrollDialog dlg(this); + dlg.setWindowTitle(tr("File Errors")); + dlg.setText( msg+"\n\n"+errlist.join("\n") ); + dlg.exec(); } noerrors = errlist.isEmpty(); this->close(); |