diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-12-30 18:57:46 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-12-30 18:57:46 +0100 |
commit | 58ead6a1f40c8332757a362e79431d8dd9f85995 (patch) | |
tree | 9e1a1aee5091ccb675407884a310f8b2a364ee8a /application/MainWindow.cpp | |
parent | 5937b1c3d479c906beaa62104769e1ccfaea8f8a (diff) | |
download | MultiMC-58ead6a1f40c8332757a362e79431d8dd9f85995.tar MultiMC-58ead6a1f40c8332757a362e79431d8dd9f85995.tar.gz MultiMC-58ead6a1f40c8332757a362e79431d8dd9f85995.tar.lz MultiMC-58ead6a1f40c8332757a362e79431d8dd9f85995.tar.xz MultiMC-58ead6a1f40c8332757a362e79431d8dd9f85995.zip |
NOISSUE handle 'folder' Flame packages by ignoring them, show warnings for minor Flame import problems
Diffstat (limited to 'application/MainWindow.cpp')
-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 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")); |