[X2Go-Commits] [x2goclient] 01/01: If no user in session config, display system username in pass form.

git-admin at x2go.org git-admin at x2go.org
Fri Feb 28 14:02:56 CET 2014


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

x2go pushed a commit to branch master
in repository x2goclient.

commit 5d7d9966198d64ce7846c4f65706f9e9e178e8d7
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date:   Fri Feb 28 14:02:50 2014 +0100

    If no user in session config, display system username in pass form.
---
 debian/changelog |    1 +
 onmainwindow.cpp |    8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 588ad17..42c5799 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ x2goclient (4.0.2.0-0x2go1) UNRELEASED; urgency=low
     - Display more version info. Parameters --version, --git, --changelog.
     - Don't show GUI dialog for --version, --help, etc, if started
       from terminal on linux and mac.
+    - If no user in session config, display system username in pass form.
 
   [ Mike Gabriel ]
   * debian/control:
diff --git a/onmainwindow.cpp b/onmainwindow.cpp
index b57db9d..993f67a 100644
--- a/onmainwindow.cpp
+++ b/onmainwindow.cpp
@@ -5917,7 +5917,15 @@ void ONMainWindow::slotShowPassForm()
         pass->selectAll();
     }
     else
+    {
+#ifdef Q_OS_WIN
+        login->setText(getenv("USERNAME"));
+#else
+        login->setText(getenv("USER"));
+#endif
         login->setFocus();
+        login->selectAll();
+    }
 
 
     if ( !embedMode )

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git



More information about the x2go-commits mailing list