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

prefill with model name *without* the extension

parent 8c56df45
No related branches found
No related tags found
No related merge requests found
......@@ -99,8 +99,10 @@ int fileChooser(FILE_CHOOSER_TYPE type, const char *message,
std::string thepath;
if(fname)
thepath = std::string(fname);
else
thepath = GModel::current()->getFileName();
else{
std::vector<std::string> tmp = SplitFileName(GModel::current()->getFileName());
thepath = tmp[0] + tmp[1]; // i.e., without the extension!
}
std::vector<std::string> split = SplitFileName(thepath);
if(split[0].empty()) thepath = std::string("./") + thepath;
......
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