From e954c5d4337746150d880d37f0016c378b065735 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 21 Feb 2007 20:23:03 +0000 Subject: Fixed file chooser to behave transparently to the current group setting git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_File_Chooser.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Fl_File_Chooser.cxx') diff --git a/src/Fl_File_Chooser.cxx b/src/Fl_File_Chooser.cxx index 5522d4f75..01dd78fd7 100644 --- a/src/Fl_File_Chooser.cxx +++ b/src/Fl_File_Chooser.cxx @@ -159,6 +159,7 @@ void Fl_File_Chooser::cb_favOkButton(Fl_Return_Button* o, void* v) { } Fl_File_Chooser::Fl_File_Chooser(const char *d, const char *p, int t, const char *title) { + Fl_Group *prev_current = Fl_Group::current(); { window = new Fl_Double_Window(490, 380, "Choose File"); window->callback((Fl_Callback*)cb_window, (void*)(this)); { Fl_Group* o = new Fl_Group(10, 10, 470, 25); @@ -296,6 +297,7 @@ type(t); int e; prefs_.get("preview", e, 1); preview(e); +Fl_Group::current(prev_current); } Fl_File_Chooser::~Fl_File_Chooser() { -- cgit v1.2.3