summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2016-05-20 20:37:34 +0200
committerJannik Vogel <email@jannikvogel.de>2016-05-20 20:37:34 +0200
commit98923ab6e566f06b61d2dc671a1b8aec87f88407 (patch)
treeff7bc3ac34138c9300af7f79f58e846e2baaf107
parentMerge pull request #1797 from MerryMage/audio-mixer (diff)
downloadyuzu-98923ab6e566f06b61d2dc671a1b8aec87f88407.tar
yuzu-98923ab6e566f06b61d2dc671a1b8aec87f88407.tar.gz
yuzu-98923ab6e566f06b61d2dc671a1b8aec87f88407.tar.bz2
yuzu-98923ab6e566f06b61d2dc671a1b8aec87f88407.tar.lz
yuzu-98923ab6e566f06b61d2dc671a1b8aec87f88407.tar.xz
yuzu-98923ab6e566f06b61d2dc671a1b8aec87f88407.tar.zst
yuzu-98923ab6e566f06b61d2dc671a1b8aec87f88407.zip
-rw-r--r--src/citra_qt/configure_audio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/citra_qt/configure_audio.cpp b/src/citra_qt/configure_audio.cpp
index f3685e11a..cedfa2f2a 100644
--- a/src/citra_qt/configure_audio.cpp
+++ b/src/citra_qt/configure_audio.cpp
@@ -28,14 +28,14 @@ ConfigureAudio::~ConfigureAudio() {
}
void ConfigureAudio::setConfiguration() {
+ int new_sink_index = 0;
for (int index = 0; index < ui->output_sink_combo_box->count(); index++) {
if (ui->output_sink_combo_box->itemText(index).toStdString() == Settings::values.sink_id) {
- ui->output_sink_combo_box->setCurrentIndex(index);
+ new_sink_index = index;
break;
}
}
-
- ui->output_sink_combo_box->setCurrentIndex(0);
+ ui->output_sink_combo_box->setCurrentIndex(new_sink_index);
}
void ConfigureAudio::applyConfiguration() {