From 91b86f1bb8abb7f82af4a17aebc83c9c53e55430 Mon Sep 17 00:00:00 2001 From: Jasmine Iwanek Date: Thu, 2 Feb 2023 07:47:58 -0500 Subject: [PATCH] Fix freeze on tools->settings --- src/qt/qt_settingssound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/qt_settingssound.cpp b/src/qt/qt_settingssound.cpp index 1be663dd8..0568f5ea1 100644 --- a/src/qt/qt_settingssound.cpp +++ b/src/qt/qt_settingssound.cpp @@ -82,8 +82,8 @@ SettingsSound::onCurrentMachineChanged(int machineId) selectedRow = 0; while (true) { - /* Skip "internal" if machine doesn't have it for the first card, always skip for others. */ - if (((c == 1) && (machine_has_flags(machineId, MACHINE_SOUND) == 0)) || (i != 0)) { + /* Skip "internal" if machine doesn't have it. */ + if ((c == 1) && (machine_has_flags(machineId, MACHINE_SOUND) == 0)) { c++; continue; }