aboutsummaryrefslogtreecommitdiff
path: root/src/citra_qt/configure_system.cpp
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2016-09-13 13:04:17 +0800
committerwwylele <wwylele@gmail.com>2016-09-13 16:15:42 +0800
commitc0262001d81df07fd07a3fd89b8c6ccee74c5b92 (patch)
tree595302ae4e7e6d5cd952e665e8ce09422056a7c3 /src/citra_qt/configure_system.cpp
parent5cd37016639bcb1dea8a692562759ccf9d904b20 (diff)
Qt: fix birthday combo box updating
Diffstat (limited to 'src/citra_qt/configure_system.cpp')
-rw-r--r--src/citra_qt/configure_system.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/citra_qt/configure_system.cpp b/src/citra_qt/configure_system.cpp
index 55d9642427..5c5d83ff38 100644
--- a/src/citra_qt/configure_system.cpp
+++ b/src/citra_qt/configure_system.cpp
@@ -18,9 +18,9 @@ ConfigureSystem::ConfigureSystem(QWidget *parent) :
QWidget(parent),
ui(new Ui::ConfigureSystem) {
ui->setupUi(this);
- this->setConfiguration();
-
connect(ui->combo_birthmonth, SIGNAL(currentIndexChanged(int)), SLOT(updateBirthdayComboBox(int)));
+
+ this->setConfiguration();
}
ConfigureSystem::~ConfigureSystem() {
@@ -60,6 +60,7 @@ void ConfigureSystem::ReadSystemSettings() {
// set birthday
std::tie(birthmonth, birthday) = Service::CFG::GetBirthday();
ui->combo_birthmonth->setCurrentIndex(birthmonth - 1);
+ updateBirthdayComboBox(birthmonth - 1); // explicitly update it because the signal from setCurrentIndex is not reliable
ui->combo_birthday->setCurrentIndex(birthday - 1);
// set system language