Skip to content

Commit

Permalink
bugfix: Config description was not set when using WHDLoad (fixes #1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Jan 9, 2025
1 parent 2eca3a4 commit 44c6ce7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/osdep/gui/PanelConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ void RefreshPanelConfig()
if (last_active_config[0])
{
txtName->setText(last_active_config);
txtDesc->setText(changed_prefs.description);
}

// Search current entry
Expand Down
6 changes: 4 additions & 2 deletions src/osdep/gui/PanelQuickstart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,7 @@ class QSWHDLoadActionListener : public gcn::ActionListener
whdload_auto_prefs(&changed_prefs, whdload_prefs.whdload_filename.c_str());

AdjustDropDownControls();
if (!last_loaded_config[0])
set_last_active_config(whdload_prefs.whdload_filename.c_str());
set_last_active_config(whdload_prefs.whdload_filename.c_str());
}
cmdWhdloadSelect->requestFocus();
}
Expand Down Expand Up @@ -474,6 +473,9 @@ class QSWHDLoadActionListener : public gcn::ActionListener
bIgnoreListChange = false;
}
whdload_auto_prefs(&changed_prefs, whdload_prefs.whdload_filename.c_str());

AdjustDropDownControls();
set_last_active_config(whdload_prefs.whdload_filename.c_str());
}
}
refresh_all_panels();
Expand Down

0 comments on commit 44c6ce7

Please sign in to comment.