summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-03 01:50:48 +0200
committerLioncash <mathew1800@gmail.com>2018-10-03 01:50:51 +0200
commit57e47bae321f001b81e6af6bf57bd611df7708f0 (patch)
tree8c2385ba480f90f33bd45f825a48d881574cb71f /src
parentconfigure_audio: Add disambiguation comment for the volume percentage string (diff)
downloadyuzu-57e47bae321f001b81e6af6bf57bd611df7708f0.tar
yuzu-57e47bae321f001b81e6af6bf57bd611df7708f0.tar.gz
yuzu-57e47bae321f001b81e6af6bf57bd611df7708f0.tar.bz2
yuzu-57e47bae321f001b81e6af6bf57bd611df7708f0.tar.lz
yuzu-57e47bae321f001b81e6af6bf57bd611df7708f0.tar.xz
yuzu-57e47bae321f001b81e6af6bf57bd611df7708f0.tar.zst
yuzu-57e47bae321f001b81e6af6bf57bd611df7708f0.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/configuration/configure_audio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/configuration/configure_audio.cpp b/src/yuzu/configuration/configure_audio.cpp
index f11aaa172..ce6b5d9e4 100644
--- a/src/yuzu/configuration/configure_audio.cpp
+++ b/src/yuzu/configuration/configure_audio.cpp
@@ -84,10 +84,10 @@ void ConfigureAudio::updateAudioDevices(int sink_index) {
ui->audio_device_combo_box->clear();
ui->audio_device_combo_box->addItem(AudioCore::auto_device_name);
- std::string sink_id = ui->output_sink_combo_box->itemText(sink_index).toStdString();
- std::vector<std::string> device_list = AudioCore::GetSinkDetails(sink_id).list_devices();
+ const std::string sink_id = ui->output_sink_combo_box->itemText(sink_index).toStdString();
+ const std::vector<std::string> device_list = AudioCore::GetSinkDetails(sink_id).list_devices();
for (const auto& device : device_list) {
- ui->audio_device_combo_box->addItem(device.c_str());
+ ui->audio_device_combo_box->addItem(QString::fromStdString(device));
}
}