Skip to content

Commit

Permalink
Merge pull request #774 from ra3xdh/750_fix_rotate_while_move
Browse files Browse the repository at this point in the history
Forbid keyboard shortcuts while moving device
  • Loading branch information
ra3xdh committed Jun 19, 2024
2 parents c08bf11 + e305665 commit 06af8c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qucs/mouseactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,9 @@ void MouseActions::MMoveMoving(Schematic *Doc, QMouseEvent *Event)
MAy1 = MAy2;
QucsMain->MouseMoveAction = &MouseActions::MMoveMoving2;
QucsMain->MouseReleaseAction = &MouseActions::MReleaseMoving;
QucsMain->editRotate->blockSignals(true);
QucsMain->insLabel->blockSignals(true);
QucsMain->setMarker->blockSignals(true);
}

// -----------------------------------------------------------
Expand Down Expand Up @@ -1808,6 +1811,10 @@ void MouseActions::MReleaseMoving(Schematic *Doc, QMouseEvent *)
QucsMain->MousePressAction = &MouseActions::MPressSelect;
QucsMain->MouseReleaseAction = &MouseActions::MReleaseSelect;
QucsMain->MouseDoubleClickAction = &MouseActions::MDoubleClickSelect;
QucsMain->editRotate->setChecked(false);
QucsMain->editRotate->blockSignals(false);
QucsMain->insLabel->blockSignals(false);
QucsMain->setMarker->blockSignals(false);
}

// -----------------------------------------------------------
Expand Down

0 comments on commit 06af8c6

Please sign in to comment.