Skip to content
Snippets Groups Projects
Commit a2fd1e6d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

put call to value() after filter() so that we see the chosen file if we specify one
parent c78ca583
No related branches found
No related tags found
No related merge requests found
// $Id: GUI_Extras.cpp,v 1.8 2005-02-05 21:49:00 geuzaine Exp $ // $Id: GUI_Extras.cpp,v 1.9 2005-02-05 22:20:51 geuzaine Exp $
// //
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -60,14 +60,6 @@ int file_chooser(int multi, int create, const char *message, ...@@ -60,14 +60,6 @@ int file_chooser(int multi, int create, const char *message,
fc->position(CTX.file_chooser_position[0], CTX.file_chooser_position[1]); fc->position(CTX.file_chooser_position[0], CTX.file_chooser_position[1]);
} }
fc->label(message);
if(fname)
fc->value(fname);
fc->filter(thefilter);
fc->filter_value(thefilterindex);
if(multi) if(multi)
fc->type(Fl_File_Chooser::MULTI); fc->type(Fl_File_Chooser::MULTI);
else if(create) else if(create)
...@@ -75,6 +67,12 @@ int file_chooser(int multi, int create, const char *message, ...@@ -75,6 +67,12 @@ int file_chooser(int multi, int create, const char *message,
else else
fc->type(Fl_File_Chooser::SINGLE); fc->type(Fl_File_Chooser::SINGLE);
fc->label(message);
fc->filter(thefilter);
fc->filter_value(thefilterindex);
if(fname)
fc->value(fname);
fc->show(); fc->show();
while(fc->shown()) while(fc->shown())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment