Fl::delete_widget() was changed in 1.3.4 to immediately hide the widget,
but the case of an iconified window (visible() is false and shown() is true) was forgotten. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10730 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
0e633c4872
commit
f28b89f1d0
@ -1904,6 +1904,8 @@ void Fl::delete_widget(Fl_Widget *wi) {
|
||||
|
||||
// if the widget is shown(), hide() it (FLTK 1.3.4)
|
||||
if (wi->visible_r()) wi->hide();
|
||||
Fl_Window *win = wi->as_window();
|
||||
if (win && win->shown()) win->hide(); // case of iconified window
|
||||
|
||||
// don't add the same widget twice to the widget delete list
|
||||
for (int i = 0; i < num_dwidgets; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user