summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-05 08:15:56 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-05 08:15:56 +0200
commit34a5e59007db39ca92e88a7b6e0ebf1b24681267 (patch)
tree8ea76c042043373676d5ff53fd04886c1a9250cb /application
parent12711880198d7a9d072527094b75dc04fafc5a45 (diff)
downloadMultiMC-34a5e59007db39ca92e88a7b6e0ebf1b24681267.tar
MultiMC-34a5e59007db39ca92e88a7b6e0ebf1b24681267.tar.gz
MultiMC-34a5e59007db39ca92e88a7b6e0ebf1b24681267.tar.lz
MultiMC-34a5e59007db39ca92e88a7b6e0ebf1b24681267.tar.xz
MultiMC-34a5e59007db39ca92e88a7b6e0ebf1b24681267.zip
GH-835 show errors reported by the update download task to the user
Diffstat (limited to 'application')
-rw-r--r--application/MainWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp
index 608aca9c..fff15cdf 100644
--- a/application/MainWindow.cpp
+++ b/application/MainWindow.cpp
@@ -1007,6 +1007,10 @@ void MainWindow::downloadUpdates(GoUpdate::Status status, bool installOnExit)
else
MMC->installUpdates(updateTask.updateFilesDir(), baseFlags | RestartOnFinish);
}
+ else
+ {
+ CustomMessageBox::selectable(this, tr("Error"), updateTask.failReason(), QMessageBox::Warning)->show();
+ }
}
void MainWindow::onCatToggled(bool state)