diff --git a/src/Gui/DlgGeneral.ui b/src/Gui/DlgGeneral.ui index 13205c3e06..e3bfc7a53b 100644 --- a/src/Gui/DlgGeneral.ui +++ b/src/Gui/DlgGeneral.ui @@ -80,7 +80,7 @@ - Unit system that should be used for all parts the application + Unit system that should be used for all parts of the application diff --git a/src/Gui/DlgGeneralImp.cpp b/src/Gui/DlgGeneralImp.cpp index 457e444f7c..2a7a5b29ad 100644 --- a/src/Gui/DlgGeneralImp.cpp +++ b/src/Gui/DlgGeneralImp.cpp @@ -83,6 +83,7 @@ DlgGeneralImp::DlgGeneralImp( QWidget* parent ) ui->RevertToSavedConfig->setEnabled(backups.empty()); connect(ui->RevertToSavedConfig, &QPushButton::clicked, this, &DlgGeneralImp::revertToSavedConfig); + connect(ui->comboBox_UnitSystem, qOverload(&QComboBox::currentIndexChanged), this, &DlgGeneralImp::onUnitSystemIndexChanged); ui->spinBoxDecimals->setMaximum(std::numeric_limits::digits10 + 1); int num = static_cast(Base::UnitSystem::NumUnitSystemTypes); @@ -536,8 +537,7 @@ void DlgGeneralImp::onLoadPreferencePackClicked(const std::string& packName) } } - -void DlgGeneralImp::on_comboBox_UnitSystem_currentIndexChanged(int index) +void DlgGeneralImp::onUnitSystemIndexChanged(int index) { if (index < 0) return; // happens when clearing the combo box in retranslateUi() diff --git a/src/Gui/DlgGeneralImp.h b/src/Gui/DlgGeneralImp.h index 4e18cb783a..4039012aeb 100644 --- a/src/Gui/DlgGeneralImp.h +++ b/src/Gui/DlgGeneralImp.h @@ -65,7 +65,7 @@ protected Q_SLOTS: void onImportConfigClicked(); public Q_SLOTS: - void on_comboBox_UnitSystem_currentIndexChanged(int index); + void onUnitSystemIndexChanged(int index); private: void setRecentFileSize();