diff --git a/src/chatlog/chatlog.cpp b/src/chatlog/chatlog.cpp index 7a3795912..45a9a293d 100644 --- a/src/chatlog/chatlog.cpp +++ b/src/chatlog/chatlog.cpp @@ -177,33 +177,17 @@ void ChatLog::mousePressEvent(QMouseEvent* ev) { QGraphicsView::mousePressEvent(ev); - QPointF scenePos = mapToScene(ev->pos()); - if(ev->button() == Qt::LeftButton) { clickPos = ev->pos(); clearSelection(); } - - if(ev->button() == Qt::RightButton) - { - if(!isOverSelection(scenePos)) - clearSelection(); - } } void ChatLog::mouseReleaseEvent(QMouseEvent* ev) { QGraphicsView::mouseReleaseEvent(ev); - QPointF scenePos = mapToScene(ev->pos()); - - if(ev->button() == Qt::RightButton) - { - if(!isOverSelection(scenePos)) - clearSelection(); - } - selectionScrollDir = NoDirection; }