1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Screen grabber: Only show flyout if the attach button is enabeld

Fixes the bug that the flyout was shown in group chats.
This commit is contained in:
Stefan Merettig 2015-04-02 16:29:27 +02:00 committed by tux3
parent f032df223f
commit f4610c41f9

View File

@ -415,6 +415,9 @@ bool GenericChatForm::eventFilter(QObject* object, QEvent* event)
if (object != this->fileButton && object != this->fileFlyout) if (object != this->fileButton && object != this->fileFlyout)
return false; return false;
if (!qobject_cast<QWidget*>(object)->isEnabled())
return false;
switch(event->type()) switch(event->type())
{ {
case QEvent::Enter: case QEvent::Enter: