diff ui/mainwindow.cpp @ 1067:51b97ebc5b06

(issue54) Launch depending on visibility either as tray or full after installation
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 10 Sep 2014 15:56:24 +0200
parents db831a204a6b
children edbf5e5e88f4
line wrap: on
line diff
--- a/ui/mainwindow.cpp	Wed Sep 10 15:54:51 2014 +0200
+++ b/ui/mainwindow.cpp	Wed Sep 10 15:56:24 2014 +0200
@@ -335,6 +335,10 @@
     QStringList parameters;
     installDir.cdUp();
     parameters << "--prefix" << installDir.path();
+    parameters << "--update";
+    if (isVisible()) {
+        parameters << "--show-after-update";
+    }
     bool sudo_started = false;
     bool use_sudo = is_admin() && is_system_install();
     if (use_sudo) {

http://wald.intevation.org/projects/trustbridge/