mirror of
https://github.com/0ldsk00l/nestopia.git
synced 2025-04-02 10:31:51 -04:00
FLTK: Input message box null pointer check
This commit is contained in:
parent
9c46227c3d
commit
e9bef32704
1 changed files with 4 additions and 0 deletions
|
@ -169,6 +169,10 @@ NstSettingsWindow::NstSettingsWindow(int w, int h, const char* t, JGManager& j,
|
|||
}
|
||||
|
||||
void NstSettingsWindow::show_msgbox(bool show) {
|
||||
if (!msgbox) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (show) {
|
||||
msgbox->label("Press the desired key, ESC to clear");
|
||||
msgbox->show();
|
||||
|
|
Loading…
Add table
Reference in a new issue