From 72c92893a5669a91e3d48b1341b6fde306db9a54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 27 Apr 2016 23:55:18 +0200 Subject: GH-1556 do not crash when instance has no update task while creating an instance --- application/MainWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'application/MainWindow.cpp') diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index f059b275..da9ea779 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -1185,7 +1185,10 @@ void MainWindow::finalizeInstance(InstancePtr inst) QString error = QString("Instance load failed: %1").arg(reason); CustomMessageBox::selectable(this, tr("Error"), error, QMessageBox::Warning)->show(); }); - loadDialog.execWithTask(update.get()); + if(update) + { + loadDialog.execWithTask(update.get()); + } } else { -- cgit v1.2.3