GH-835 show errors reported by the update download task to the user

This commit is contained in:
Petr Mrázek 2015-05-05 08:15:56 +02:00
parent 1271188019
commit 34a5e59007

View File

@ -1007,6 +1007,10 @@ void MainWindow::downloadUpdates(GoUpdate::Status status, bool installOnExit)
else else
MMC->installUpdates(updateTask.updateFilesDir(), baseFlags | RestartOnFinish); MMC->installUpdates(updateTask.updateFilesDir(), baseFlags | RestartOnFinish);
} }
else
{
CustomMessageBox::selectable(this, tr("Error"), updateTask.failReason(), QMessageBox::Warning)->show();
}
} }
void MainWindow::onCatToggled(bool state) void MainWindow::onCatToggled(bool state)