X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.cpp;h=9b7c220343905b31f3e1d45726a875cc45155416;hp=fc45b77c0e6eafad02955fb05722555ba789acad;hb=e8e50ceb0f0df46a6f281f6d4fd587f00fe532d3;hpb=7ff0e773f78ed00e5f039fa8b2ec2913b8bc84a5 diff --git a/src/qtui/chatitem.cpp b/src/qtui/chatitem.cpp index fc45b77c..9b7c2203 100644 --- a/src/qtui/chatitem.cpp +++ b/src/qtui/chatitem.cpp @@ -278,7 +278,7 @@ void ChatItem::mousePressEvent(QGraphicsSceneMouseEvent *event) { } void ChatItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) { - if(_selectionMode != NoSelection && !event->buttons() & Qt::LeftButton) { + if(_selectionMode != NoSelection && event->button() == Qt::LeftButton) { chatScene()->selectionToClipboard(QClipboard::Selection); event->accept(); } else