diff options
-rw-r--r-- | application/MainWindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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")); |