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

better preset of file name after first time

parent 977b7280
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,8 @@ int fileChooser(FILE_CHOOSER_TYPE type, const char *message, ...@@ -128,7 +128,8 @@ int fileChooser(FILE_CHOOSER_TYPE type, const char *message,
first = false; first = false;
} }
else{ else{
fc->preset_file(0); std::string name = split[1] + split[2];
fc->preset_file(name.c_str());
} }
int ret = 0; int ret = 0;
...@@ -172,7 +173,8 @@ int fileChooser(FILE_CHOOSER_TYPE type, const char *message, ...@@ -172,7 +173,8 @@ int fileChooser(FILE_CHOOSER_TYPE type, const char *message,
first = false; first = false;
} }
else{ else{
fc->value(0); std::string name = split[1] + split[2];
fc->value(name.c_str());
} }
fc->show(); fc->show();
while(fc->shown()) Fl::wait(); while(fc->shown()) Fl::wait();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment