[X2Go-Commits] [x2goclient] 03/04: src/onmainwindow.cpp: increase fixed height of session selection dialog in normal mode and also set as minimum height.

git-admin at x2go.org git-admin at x2go.org
Sat Nov 27 01:59:30 CET 2021


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

x2go pushed a commit to branch master
in repository x2goclient.

commit 51b0f4fb6b1ca0de20f09a9867a67413ec427679
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Nov 27 01:31:49 2021 +0100

    src/onmainwindow.cpp: increase fixed height of session selection dialog in normal mode and also set as minimum height.
---
 debian/changelog     | 2 ++
 src/onmainwindow.cpp | 7 +++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 0a04d5c..f09846c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -100,6 +100,8 @@ x2goclient (4.1.2.3-0x2go1) UNRELEASED; urgency=medium
     - src/onmainwindow.cpp: set word wrapping on running label.
     - src/onmainwindow.cpp: increase height of session selection dialog in
       mini mode.
+    - src/onmainwindow.cpp: increase fixed height of session selection dialog
+      in normal mode and also set as minimum height.
   * debian/control:
     + Move to debian/control.in.
   * debian/control.in:
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
index 216feaf..97c955d 100644
--- a/src/onmainwindow.cpp
+++ b/src/onmainwindow.cpp
@@ -12794,8 +12794,11 @@ void ONMainWindow::initSelectSessDlg()
                                       false,bgFrame );
     username->addWidget ( selectSessionDlg );
     setWidgetStyle ( selectSessionDlg );
-    if ( !miniMode )
-        selectSessionDlg->setFixedSize ( selectSessionDlg->sizeHint() );
+    if ( !miniMode ) {
+        QSize hint_size = selectSessionDlg->sizeHint ();
+        selectSessionDlg->setMinimumSize (QSize (hint_size.width (), (hint_size.height () + 100)));
+        selectSessionDlg->setFixedSize (selectSessionDlg->minimumSize ());
+    }
     else
         selectSessionDlg->setFixedSize ( 310,240 );
     QPalette pal=selectSessionDlg->palette();

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list