restrict last commit to left mouse button

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6766 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-09-25 20:19:24 +00:00
parent 1d0c7b2e2f
commit be2025382b

View File

@ -339,8 +339,11 @@ QVariant Node::itemChange(GraphicsItemChange change, const QVariant &value)
void Node::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
_selected_node = this ;
graph->forceRedraw() ;
if(event->button() == Qt::LeftButton)
{
_selected_node = this ;
graph->forceRedraw() ;
}
update();
QGraphicsItem::mousePressEvent(event);