From 2727f3c2a85cb0277388653749f457d44d0d9313 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 20 Nov 2015 21:56:01 +0100 Subject: [PATCH] Hide QObject::connect stateChanged warning. --- pytest.ini | 1 - qutebrowser/utils/log.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index 421878737..36bc16868 100644 --- a/pytest.ini +++ b/pytest.ini @@ -36,4 +36,3 @@ qt_log_ignore = ^QNetworkReplyImplPrivate::error: Internal problem, this method must only be called once\. ^QWaitCondition: Destroyed while threads are still waiting ^QXcbXSettings::QXcbXSettings\(QXcbScreen\*\) Failed to get selection owner for XSETTINGS_S atom - ^QObject::connect: Cannot connect \(null\)::stateChanged\(QNetworkSession::State\) to QNetworkReplyHttpImpl::_q_networkSessionStateChanged\(QNetworkSession::State\) diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index 686981924..6442ed999 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -297,6 +297,11 @@ def qt_message_handler(msg_type, context, msg): 'QXcbWindow: Unhandled client message: "_GTK_', # Happens on AppVeyor CI 'SetProcessDpiAwareness failed:', + # https://bugreports.qt.io/browse/QTBUG-49174 + 'QObject::connect: Cannot connect (null)::stateChanged(' + 'QNetworkSession::State) to ' + 'QNetworkReplyHttpImpl::_q_networkSessionStateChanged(' + 'QNetworkSession::State)', ] if sys.platform == 'darwin': suppressed_msgs += [