diff options
| author | Manolo Gouy <Manolo> | 2015-07-22 10:58:39 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-07-22 10:58:39 +0000 |
| commit | 53c72bb9058216e53d5c636ee4f81191d87fff2f (patch) | |
| tree | 687729365f74f731b7876ed9aa7d0122069c90c1 /src/fl_ask.cxx | |
| parent | 1b0e984a8f800bfcf889839290a9ff1d873aafed (diff) | |
Prevent common dialogs, e.g., fl_alert(), from changing the currently active Fl_Group.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_ask.cxx')
| -rw-r--r-- | src/fl_ask.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx index 7e7a24edb..b24a1762b 100644 --- a/src/fl_ask.cxx +++ b/src/fl_ask.cxx @@ -251,7 +251,9 @@ static int innards(const char* fmt, va_list ap, // deactivate Fl::grab(), because it is incompatible with modal windows Fl_Window* g = Fl::grab(); if (g) Fl::grab(0); + Fl_Group *current_group = Fl_Group::current(); // make sure the dialog does not interfere with any active group message_form->show(); + Fl_Group::current(current_group); while (message_form->shown()) Fl::wait(); if (g) // regrab the previous popup menu, if there was one Fl::grab(g); |
