diff --git a/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp b/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp index 979441eaa..1e82def1a 100644 --- a/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp +++ b/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp @@ -106,11 +106,7 @@ void DialogPiecePath::ChosenObject(quint32 id, const SceneObject &type) { if (not prepare) { - bool reverse = false; - if (QGuiApplication::keyboardModifiers() == Qt::ShiftModifier) - { - reverse = true; - } + const bool reverse = QGuiApplication::keyboardModifiers() == Qt::ShiftModifier; if (id != GetLastId()) { switch (type)