diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index ba7c0dae7..dc2379a7a 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"));