Skip to content

Commit

Permalink
bugfix: Always clear the text fields when deleting a config (fixes #1321
Browse files Browse the repository at this point in the history
)
  • Loading branch information
midwan committed May 13, 2024
1 parent c4954ff commit 6e13926
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/osdep/gui/PanelConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,9 @@ class ConfigButtonActionListener : public gcn::ActionListener
if (ShowMessage("Delete Configuration", msg, "", "", "Yes", "No"))
{
remove(ConfigFilesList[i]->FullPath);
if (!strcmp(last_active_config, ConfigFilesList[i]->Name))
{
txtName->setText("");
txtDesc->setText("");
last_active_config[0] = '\0';
}
txtName->setText("");
txtDesc->setText("");
last_active_config[0] = '\0';
ConfigFilesList.erase(ConfigFilesList.begin() + i);
RefreshPanelConfig();
}
Expand Down

0 comments on commit 6e13926

Please sign in to comment.