Refactoring. Removing redundant code.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-05-07 18:00:02 +03:00
parent f027d92a4c
commit 180332d279

View File

@ -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)