From c8acaeb2f0dc1258a84610b9a406435ecb83bbbe Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sat, 15 Aug 2020 15:23:44 -0700 Subject: [PATCH] Warning fix. --- qt/lc_qpreferencesdialog.cpp | 4 +++- qt/lc_qpreferencesdialog.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qt/lc_qpreferencesdialog.cpp b/qt/lc_qpreferencesdialog.cpp index 8a640790..380966a7 100644 --- a/qt/lc_qpreferencesdialog.cpp +++ b/qt/lc_qpreferencesdialog.cpp @@ -326,8 +326,10 @@ void lcQPreferencesDialog::on_lgeoPathBrowse_clicked() ui->lgeoPath->setText(QDir::toNativeSeparators(result)); } -void lcQPreferencesDialog::on_ColorTheme_currentIndexChanged() +void lcQPreferencesDialog::on_ColorTheme_currentIndexChanged(int Index) { + Q_UNUSED(Index); + if (QMessageBox::question(this, tr("Reset Colors"), tr("Would you like to also reset the interface colors to match the color theme?")) == QMessageBox::Yes) mOptions->Preferences.SetInterfaceColors(static_cast(ui->ColorTheme->currentIndex())); } diff --git a/qt/lc_qpreferencesdialog.h b/qt/lc_qpreferencesdialog.h index efc4035b..9b9388dc 100644 --- a/qt/lc_qpreferencesdialog.h +++ b/qt/lc_qpreferencesdialog.h @@ -32,7 +32,7 @@ public slots: void on_MinifigSettingsBrowseButton_clicked(); void on_povrayExecutableBrowse_clicked(); void on_lgeoPathBrowse_clicked(); - void on_ColorTheme_currentIndexChanged(); + void on_ColorTheme_currentIndexChanged(int Index); void ColorButtonClicked(); void on_antiAliasing_toggled(); void on_edgeLines_toggled();