Fix various typos
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user