Skip to content

Commit

Permalink
bugfix: When saving a new config in the GUI, it should be selected af…
Browse files Browse the repository at this point in the history
…ter the refresh (#1317)
  • Loading branch information
midwan committed May 10, 2024
1 parent d89ae62 commit 1fdd812
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/osdep/gui/PanelConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ class ConfigButtonActionListener : public gcn::ActionListener
strncat(filename, ".uae", MAX_DPATH - 1);
strncpy(changed_prefs.description, txtDesc->getText().c_str(), 256);
if (cfgfile_save(&changed_prefs, filename, 0))
{
strncpy(last_active_config, txtName->getText().c_str(), MAX_DPATH);
RefreshPanelConfig();
}
}
}
else if (actionEvent.getSource() == cmdDelete)
Expand Down

0 comments on commit 1fdd812

Please sign in to comment.