From 7cd13302c5bfc7c007b3032ca453679f233d10e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 31 Dec 2017 07:20:28 +0100 Subject: NOISSUE only show pack import warnings when there are some --- application/MainWindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index ba7c0dae..dc2379a7 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -1243,7 +1243,11 @@ void MainWindow::runModalTask(Task *task) }); connect(task, &Task::succeeded, [this, task]() { - CustomMessageBox::selectable(this, tr("Warnings"), task->warnings().join('\n'), QMessageBox::Warning)->show(); + QStringList warnings = task->warnings(); + if(warnings.count()) + { + CustomMessageBox::selectable(this, tr("Warnings"), warnings.join('\n'), QMessageBox::Warning)->show(); + } }); ProgressDialog loadDialog(this); loadDialog.setSkipButton(true, tr("Abort")); -- cgit v1.2.3