From 794f38f07956dd266757f681aaae3436694f5958 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Mon, 5 Feb 2018 22:21:31 +0100 Subject: [PATCH] Fixed bug in GUI, where the CD dropdown would not keep the value if you selected one from the history --- src/osdep/gui/PanelHD.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osdep/gui/PanelHD.cpp b/src/osdep/gui/PanelHD.cpp index 29631918..1f38a483 100644 --- a/src/osdep/gui/PanelHD.cpp +++ b/src/osdep/gui/PanelHD.cpp @@ -324,7 +324,7 @@ public: } else { - if (cdfileList.getElementAt(idx) == changed_prefs.cdslots[0].name) + if (cdfileList.getElementAt(idx) != changed_prefs.cdslots[0].name) { strncpy(changed_prefs.cdslots[0].name, cdfileList.getElementAt(idx).c_str(), sizeof changed_prefs.cdslots[0].name); changed_prefs.cdslots[0].inuse = true; @@ -553,7 +553,7 @@ static void AdjustDropDownControls() { for (unsigned int i = 0; i < lstMRUCDList.size(); ++i) { - if (lstMRUCDList[i] != changed_prefs.cdslots[0].name) + if (lstMRUCDList[i].c_str() != changed_prefs.cdslots[0].name) { cboCDFile->setSelected(i); break;