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) if (not prepare)
{ {
bool reverse = false; const bool reverse = QGuiApplication::keyboardModifiers() == Qt::ShiftModifier;
if (QGuiApplication::keyboardModifiers() == Qt::ShiftModifier)
{
reverse = true;
}
if (id != GetLastId()) if (id != GetLastId())
{ {
switch (type) switch (type)