/***************************************************************************
- * Copyright (C) 2005-08 by the Quassel Project *
+ * Copyright (C) 2005-09 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
}
void ChatScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
- if(!event->buttons() & Qt::LeftButton) {
+ if(event->button() == Qt::LeftButton && _leftButtonPressed) {
_leftButtonPressed = false;
if(_clickMode != NoClick) {
if(_clickMode == SingleClick)