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,
first = false;
}
else{
fc->preset_file(0);
std::string name = split[1] + split[2];
fc->preset_file(name.c_str());
}
int ret = 0;
......@@ -172,7 +173,8 @@ int fileChooser(FILE_CHOOSER_TYPE type, const char *message,
first = false;
}
else{
fc->value(0);
std::string name = split[1] + split[2];
fc->value(name.c_str());
}
fc->show();
while(fc->shown()) Fl::wait();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment