Fix various typos

This commit is contained in:
luzpaz
2024-12-18 22:58:42 +00:00
committed by Chris Hennes
parent ab508f99c7
commit 0758630103
6 changed files with 8 additions and 8 deletions

View File

@@ -466,11 +466,11 @@ void TaskMeasure::onSelectionChanged(const Gui::SelectionChanges& msg)
// If the control modifier is pressed, the object is just added to the current measurement
// If the control modifier is not pressed, a new measurement will be started. If autosave is on,
// the old measurement will be saved otherwise discharded. Shift inverts the autosave behaviour
// temporarly
// temporarily
const auto modifier = QGuiApplication::keyboardModifiers();
const bool ctrl = (modifier & Qt::ControlModifier) > 0;
const bool shift = (modifier & Qt::ShiftModifier) > 0;
// shift inverts the current state temporarly
// shift inverts the current state temporarily
const auto autosave = (mAutoSave && !shift) || (!mAutoSave && shift);
if ((!ctrl && Selection().getSelectionStyle() == SelectionStyle::NormalSelection)
|| (ctrl && Selection().getSelectionStyle() == SelectionStyle::GreedySelection)) {