From 98923ab6e566f06b61d2dc671a1b8aec87f88407 Mon Sep 17 00:00:00 2001
From: James Rowe <jroweboy@gmail.com>
Date: Fri, 20 May 2016 12:37:34 -0600
Subject: [PATCH] Config: Restore previously selected audio sink option (#1824)

---
 src/citra_qt/configure_audio.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/citra_qt/configure_audio.cpp b/src/citra_qt/configure_audio.cpp
index f3685e11ab..cedfa2f2a7 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() {
-- 
GitLab