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

Merge pull request #3214

initramfs (1):
      fix(chat window): prevent right click from opening chat window
This commit is contained in:
sudden6 2016-04-29 19:58:41 +02:00
commit 08263e9844
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -181,9 +181,16 @@ void GenericChatroomWidget::reloadTheme()
setPalette(p); setPalette(p);
} }
void GenericChatroomWidget::mouseReleaseEvent(QMouseEvent*) void GenericChatroomWidget::mouseReleaseEvent(QMouseEvent* event)
{ {
emit chatroomWidgetClicked(this); if(event->button() == Qt::LeftButton)
{
emit chatroomWidgetClicked(this);
}
else
{
event->ignore();
}
} }
void GenericChatroomWidget::enterEvent(QEvent*) void GenericChatroomWidget::enterEvent(QEvent*)