From 53bd9474be03dd7defc4401d3d4557b57f5b0c90 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 13 Apr 2020 15:05:22 +0300 Subject: [PATCH] Cppcheck warning. --- src/app/puzzle/puzzlemainwindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/puzzle/puzzlemainwindow.cpp b/src/app/puzzle/puzzlemainwindow.cpp index 84bfc2a66..7d122e9a9 100644 --- a/src/app/puzzle/puzzlemainwindow.cpp +++ b/src/app/puzzle/puzzlemainwindow.cpp @@ -126,11 +126,11 @@ void PuzzleMainWindow::InitPropertyTabLayout() ui->comboBoxLayoutUnit->addItem(tr("Inches"), QVariant(UnitsToStr(Unit::Inch))); // set default unit - TODO when we have the setting for the unit - const qint32 indexUnit = -1;//ui->comboBoxLayoutUnit->findData(qApp->ValentinaSettings()->GetUnit()); - if (indexUnit != -1) - { - ui->comboBoxLayoutUnit->setCurrentIndex(indexUnit); - } +// const qint32 indexUnit = -1;//ui->comboBoxLayoutUnit->findData(qApp->ValentinaSettings()->GetUnit()); +// if (indexUnit != -1) +// { +// ui->comboBoxLayoutUnit->setCurrentIndex(indexUnit); +// } connect(ui->comboBoxLayoutUnit, QOverload::of(&QComboBox::currentIndexChanged), this, &PuzzleMainWindow::LayoutUnitChanged);