Subject: Bug#1186: --close-disconnect fix for RDP sessions in broker mode

From: Walid MOGHRABI <[email-masked]>
Date: Mon, 5 Jun 2017 12:22:38 +0200 (CEST)

package: x2goclient
priority: wishlist
tags: patch

This is a proposal patch in order to enable --close-disconnect option for RDP sessions in broker mode.

Regards,
Walid Moghrabi

TRAVAUX.COM
BAT I - PARC CEZANNE 2 290 AVENUE GALILEE - CS 80403
13591 AIX EN PROVENCE CEDEX 3

---
DISCLAIMER: This e-mail is private and confidential and may contain proprietary or legally privileged information. It is for the intended recipient only. If you have received this email in error, please notify the author by replying to it and then destroy it. If you are not the intended recipient you must not use, disclose, distribute, copy, print or rely on this e-mail or any attachment. Thank you

--- /x2goclient-current/src/onmainwindow.cpp
+++ /x2goclient/src/onmainwindow.cpp
@@ -6230,6 +6230,10 @@
 #ifdef Q_OS_LINUX
     if (directRDP)
     {
+        if (closeDisconnect)
+        {
+            close();
+        }
         pass->setText ( "" );
         QTimer::singleShot ( 2000,this,
                              SLOT ( slotShowPassForm() ) );