From 1dca039025235f5bc53899b75e149d99ce9c44a9 Mon Sep 17 00:00:00 2001 From: matask Date: Sun, 7 Jul 2013 22:13:52 +0200 Subject: [PATCH] GUI:quit_fltk() simplified --- src/gui.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui.hxx b/src/gui.hxx index fef4715..c959c6b 100755 --- a/src/gui.hxx +++ b/src/gui.hxx @@ -67,6 +67,7 @@ class GUI; */ static void quit_fltk ( Fl_Widget *w, void *p ) { +/* Fl_Window *mainwindow = (Fl_Window*)p; // hide all other windows Fl_Window *win = Fl::next_window( mainwindow ); @@ -76,6 +77,9 @@ static void quit_fltk ( Fl_Widget *w, void *p ) } // hide main window and thus exit program mainwindow->hide(); +*/ + while(Fl::first_window()) + Fl::first_window()->hide(); } -- 2.11.4.GIT