From 58ead6a1f40c8332757a362e79431d8dd9f85995 Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sat, 30 Dec 2017 18:57:46 +0100 Subject: NOISSUE handle 'folder' Flame packages by ignoring them, show warnings for minor Flame import problems --- application/MainWindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'application') diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index 7ab83b1f..ba7c0dae 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -1239,7 +1239,11 @@ void MainWindow::runModalTask(Task *task) { connect(task, &Task::failed, [this](QString reason) { - CustomMessageBox::selectable(this, tr("Error"), reason, QMessageBox::Warning)->show(); + CustomMessageBox::selectable(this, tr("Error"), reason, QMessageBox::Critical)->show(); + }); + connect(task, &Task::succeeded, [this, task]() + { + CustomMessageBox::selectable(this, tr("Warnings"), task->warnings().join('\n'), QMessageBox::Warning)->show(); }); ProgressDialog loadDialog(this); loadDialog.setSkipButton(true, tr("Abort")); -- cgit