From 0b4f365d60cf2f1ff0086efee0820e2dd617a4d9 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 16 Aug 2016 18:27:42 +0200 Subject: [PATCH] Merge with develop --- code/ryzom/tools/client/ryzom_installer/src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/ryzom/tools/client/ryzom_installer/src/main.cpp b/code/ryzom/tools/client/ryzom_installer/src/main.cpp index 2e4ad5481..6a9662c4f 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/main.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/main.cpp @@ -215,6 +215,12 @@ int main(int argc, char *argv[]) if (!dialog.exec()) return 1; step = config.getInstallNextStep(); + + if (step == Done) + { + // restart Installer, so it could be copied in TEMP and allowed to update itself + if (QProcess::startDetached(QApplication::applicationFilePath(), QApplication::arguments())) return 0; + } } CMainWindow mainWindow;