From f4610c41f9bc98665566c5f37267b2dd1c015bb9 Mon Sep 17 00:00:00 2001 From: Stefan Merettig Date: Thu, 2 Apr 2015 16:29:27 +0200 Subject: [PATCH] Screen grabber: Only show flyout if the attach button is enabeld Fixes the bug that the flyout was shown in group chats. --- src/widget/form/genericchatform.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widget/form/genericchatform.cpp b/src/widget/form/genericchatform.cpp index 0e0dddb2d..e5dad9c40 100644 --- a/src/widget/form/genericchatform.cpp +++ b/src/widget/form/genericchatform.cpp @@ -415,6 +415,9 @@ bool GenericChatForm::eventFilter(QObject* object, QEvent* event) if (object != this->fileButton && object != this->fileFlyout) return false; + if (!qobject_cast(object)->isEnabled()) + return false; + switch(event->type()) { case QEvent::Enter: