diff --git a/src/widget/genericchatroomwidget.cpp b/src/widget/genericchatroomwidget.cpp index f263f474f..8a2b037f1 100644 --- a/src/widget/genericchatroomwidget.cpp +++ b/src/widget/genericchatroomwidget.cpp @@ -181,9 +181,16 @@ void GenericChatroomWidget::reloadTheme() 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*)