changeset 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 febd195c0301
children 4e93a87d89eb
files ui/mainwindow.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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/