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

x2go pushed a commit to branch master
in repository x2goclient.

commit 94b150b7271fc035805acb95667bfe6f9e39601f
Author: Oleksandr Shneyder <o.shney...@phoca-gmbh.de>
Date:   Fri Sep 17 13:49:45 2021 +0200

    Setting debug filter rules for QT>=5.2
---
 debian/changelog     | 1 +
 src/onmainwindow.cpp | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e7ca958..ed4343b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,7 @@ x2goclient (4.1.2.3-0x2go1) UNRELEASED; urgency=medium
     - Support for HTTP(S) urls in the session icons when using http broker.
     - Fix loading session icon to system tray when using broker.
     - Add --debug argument to x2gokdriveclient in debug mode.
+    - Setting debug filter rules for QT>=5.2
 
   [ Ryan Schmidt ]
   * New upstream version (4.1.2.3):
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
index b0b418c..f1febcb 100644
--- a/src/onmainwindow.cpp
+++ b/src/onmainwindow.cpp
@@ -21,6 +21,11 @@
 
 #include <QStyleFactory>
 
+#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
+#include <QLoggingCategory>
+#endif
+
+
 void x2goSession::operator = ( const x2goSession& s )
 {
     agentPid=s.agentPid;
@@ -7767,6 +7772,9 @@ bool ONMainWindow::parseParameter ( QString param )
     if (param == "--debug")
     {
         ONMainWindow::debugging = true;
+#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
+        QLoggingCategory::setFilterRules("default.debug=true");
+#endif
         return true;
     }
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on 
/srv/git/code.x2go.org/x2goclient.git
_______________________________________________
x2go-commits mailing list
x2go-commits@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-commits

Reply via email to