Commit 0e3f1174 authored by Frédéric Larue's avatar Frédéric Larue
Browse files

Bug fix in the ALT selection mode in the TreeView.

parent 628fe64d
......@@ -115,7 +115,7 @@ void UIDataWidget::updateSelection( GenericUIData *d, Qt::KeyboardModifiers modi
void UIDataWidget::mouseReleaseEvent( QMouseEvent *evt )
{
if( QApplication::keyboardModifiers() & Qt::AltModifier )
if( evt->button() == Qt::LeftButton && (QApplication::keyboardModifiers() & Qt::AltModifier) )
{
GenericUIData *m = ((UIDataWidgetItem*) itemAt(evt->pos()))->getUIData();
if( m )
......@@ -135,8 +135,8 @@ void UIDataWidget::mouseReleaseEvent( QMouseEvent *evt )
} );
}
}
QTreeWidget::mouseReleaseEvent( evt );
else
QTreeWidget::mouseReleaseEvent( evt );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment