FLTK: Input message box null pointer check

This commit is contained in:
rdanbrook 2024-10-21 22:56:54 -06:00
parent 9c46227c3d
commit e9bef32704

View file

@ -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();