Skip to content

Commit

Permalink
Fix GitHub Issue #87: Group move doesn't work with the move handle
Browse files Browse the repository at this point in the history
  • Loading branch information
juzzlin committed Jul 4, 2020
1 parent 3f6609f commit 65be2ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ New features:

Bug fixes:

* Fix GitHub Issue #87: Group move doesn't work with the move handle

Other:

1.18.0
Expand Down
5 changes: 3 additions & 2 deletions src/editor_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ void EditorView::handleMousePressEventOnNodeHandle(QMouseEvent & event, NodeHand
return;
}

m_mediator.clearSelectionGroup();

if (event.button() == Qt::LeftButton) {
handleLeftButtonClickOnNodeHandle(nodeHandle);
}
Expand All @@ -150,16 +148,19 @@ void EditorView::handleLeftButtonClickOnNodeHandle(NodeHandle & nodeHandle)
{
switch (nodeHandle.role()) {
case NodeHandle::Role::Add:
m_mediator.clearSelectionGroup();
initiateNewNodeDrag(nodeHandle);
break;
case NodeHandle::Role::Drag:
initiateNodeDrag(nodeHandle.parentNode());
break;
case NodeHandle::Role::Color:
m_mediator.clearSelectionGroup();
m_mediator.setSelectedNode(&nodeHandle.parentNode());
openNodeColorDialog();
break;
case NodeHandle::Role::TextColor:
m_mediator.clearSelectionGroup();
m_mediator.setSelectedNode(&nodeHandle.parentNode());
openNodeTextColorDialog();
break;
Expand Down

0 comments on commit 65be2ee

Please sign in to comment.