From 0e7f0497f8c53b50183bddccfc9709d924798fcc Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 5 Jan 2016 11:11:15 -0500 Subject: Setup the dialog to use for file operation errors as the scroll dialog (in case the list of files is really long). --- lumina-fm/FODialog.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lumina-fm/FODialog.cpp') 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 #include +#include + #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(); -- cgit