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:
parent
f032df223f
commit
f4610c41f9
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user