mirror of
https://github.com/fltk/fltk.git
synced 2026-08-17 16:43:10 +08:00
Fl_MacOS_Sys_Menu_Bar_Driver::rename_window fails with null window labels (#1455)
This commit is contained in:
@@ -738,6 +738,7 @@ void Fl_MacOS_Sys_Menu_Bar_Driver::rename_window(Fl_Window *win)
|
||||
if (!item->label()) return;
|
||||
if (item->user_data() == win) {
|
||||
item->label(win->iconlabel() ? win->iconlabel() : win->label());
|
||||
if (!item->label()) item->label("");
|
||||
bar->update();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user