mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-29 06:54:22 +01:00
Handle selection of None correctly
This commit is contained in:
parent
171e274b9a
commit
bf0d8c5e90
@ -36,7 +36,11 @@ public:
|
|||||||
|
|
||||||
virtual void selectCallback(int which)
|
virtual void selectCallback(int which)
|
||||||
{
|
{
|
||||||
char *p = xstrdup(this->pp_msgs[this->cur_sel]);
|
const char *msg = this->pp_msgs[this->cur_sel];
|
||||||
|
|
||||||
|
if (strcmp(msg, "None") != 0)
|
||||||
|
{
|
||||||
|
char *p = xstrdup(msg);
|
||||||
|
|
||||||
p[strlen(p) - 1] = '\0';
|
p[strlen(p) - 1] = '\0';
|
||||||
if (!Gui::gui->setTheme(p + 1))
|
if (!Gui::gui->setTheme(p + 1))
|
||||||
@ -46,6 +50,7 @@ public:
|
|||||||
Gui::gui->pushDialogueBox(new DialogueBox(broken_theme_dlg));
|
Gui::gui->pushDialogueBox(new DialogueBox(broken_theme_dlg));
|
||||||
}
|
}
|
||||||
free(p);
|
free(p);
|
||||||
|
}
|
||||||
Gui::gui->popView();
|
Gui::gui->popView();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user