git | 29 Mar 00:31 2014

[x2goclient] 01/01: Allow starting shadow sessions from the command line with option --hidden being enabled. (Fixes: #349).

This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goclient.

commit 89b5d94ac7aa9b3fe9a9e398c60e74a8a13d095b
Author: Mike Gabriel <mike.gabriel@...>
Date:   Sat Mar 29 00:32:04 2014 +0100

    Allow starting shadow sessions from the command line with option --hidden being enabled. (Fixes: #349).
---
 debian/changelog |    2 ++
 onmainwindow.cpp |    3 +++
 2 files changed, 5 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 14ae6df..f5db338 100644
--- a/debian/changelog
+++ b/debian/changelog
 <at>  <at>  -35,6 +35,8  <at>  <at>  x2goclient (4.0.2.0-0x2go1) UNRELEASED; urgency=low
       nightly builds in build scripts.
     - Rename txt/git to txt/git-info (make it compliant with cmdline
       options).
+    - Allow starting shadow sessions from the command line with
+      option --hidden being enabled. (Fixes: #349).
   * debian/control:
     + Build-depend on libssh-dev (>= 0.5.4-2).
     + Bump Standards: to 3.9.5. No changes needed.
diff --git a/onmainwindow.cpp b/onmainwindow.cpp
index fbae475..1456d9d 100644
--- a/onmainwindow.cpp
+++ b/onmainwindow.cpp
 <at>  <at>  -4461,6 +4461,9  <at>  <at>  void ONMainWindow::selectSession ( QStringList& sessions )
     sessTv->setCurrentIndex ( sessTv->model()->index ( 0, 0 ) );
     sessTv->setFocus();
     selectSessionDlg->show();
+
+    if( startHidden && shadowSession && sessTv->model()->rowCount() == 1 )
+        slotShadowSess();
 }

 void ONMainWindow::slotCloseSelectDlg()

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
_______________________________________________
X2Go-commits mailing list
X2Go-commits@...
https://lists.berlios.de/mailman/listinfo/x2go-commits


Gmane