Fixed bug in Floppy dropdowns, where selected values were not kept

This commit is contained in:
Dimitris Panokostas 2018-02-03 16:38:15 +01:00
parent 1b7525ddc0
commit 568513e5b9

View file

@ -253,7 +253,7 @@ public:
}
else
{
if (diskfileList.getElementAt(idx) == changed_prefs.floppyslots[i].df)
if (diskfileList.getElementAt(idx) != changed_prefs.floppyslots[i].df)
{
strncpy(changed_prefs.floppyslots[i].df, diskfileList.getElementAt(idx).c_str(), MAX_DPATH);
disk_insert(i, changed_prefs.floppyslots[i].df);