mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(chat window): prevent right click from opening chat window
Prevent a right click mouse release event from triggering a chat window switch/launch. Closes #3205
This commit is contained in:
parent
5045c460d7
commit
b9a392d59e
|
@ -181,10 +181,17 @@ void GenericChatroomWidget::reloadTheme()
|
||||||
setPalette(p);
|
setPalette(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GenericChatroomWidget::mouseReleaseEvent(QMouseEvent*)
|
void GenericChatroomWidget::mouseReleaseEvent(QMouseEvent* event)
|
||||||
|
{
|
||||||
|
if(event->button() == Qt::LeftButton)
|
||||||
{
|
{
|
||||||
emit chatroomWidgetClicked(this);
|
emit chatroomWidgetClicked(this);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
event->ignore();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void GenericChatroomWidget::enterEvent(QEvent*)
|
void GenericChatroomWidget::enterEvent(QEvent*)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user