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();