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 ...@@ -115,7 +115,7 @@ void UIDataWidget::updateSelection( GenericUIData *d, Qt::KeyboardModifiers modi
void UIDataWidget::mouseReleaseEvent( QMouseEvent *evt ) 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(); GenericUIData *m = ((UIDataWidgetItem*) itemAt(evt->pos()))->getUIData();
if( m ) if( m )
...@@ -135,8 +135,8 @@ void UIDataWidget::mouseReleaseEvent( QMouseEvent *evt ) ...@@ -135,8 +135,8 @@ void UIDataWidget::mouseReleaseEvent( QMouseEvent *evt )
} ); } );
} }
} }
else
QTreeWidget::mouseReleaseEvent( evt ); QTreeWidget::mouseReleaseEvent( evt );
} }
......
Supports Markdown
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