summaryrefslogtreecommitdiff
path: root/src/fl_ask.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fl_ask.cxx')
-rw-r--r--src/fl_ask.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx
index 5e75fab42..016b52495 100644
--- a/src/fl_ask.cxx
+++ b/src/fl_ask.cxx
@@ -59,6 +59,11 @@ static Fl_Window *makeform() {
message_form->size(410,103);
return message_form;
}
+ // make sure that the dialog does not become the child of some
+ // current group
+ Fl_Group *previously_current_group = Fl_Group::current();
+ Fl_Group::current(0);
+ // create a new top level window
Fl_Window *w = message_form = new Fl_Window(410,103,"");
// w->clear_border();
// w->box(FL_UP_BOX);
@@ -82,6 +87,7 @@ static Fl_Window *makeform() {
w->resizable(new Fl_Box(60,10,110-60,27));
w->end();
w->set_modal();
+ Fl_Group::current(previously_current_group);
return w;
}