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

pp

parent 5ce5005d
No related branches found
No related tags found
No related merge requests found
...@@ -28,12 +28,12 @@ void add_infile(std::string text, std::string fileName, bool deleted_something) ...@@ -28,12 +28,12 @@ void add_infile(std::string text, std::string fileName, bool deleted_something)
if(split[2].size() && split[2] != ".geo" && split[2] != ".GEO"){ if(split[2].size() && split[2] != ".geo" && split[2] != ".GEO"){
std::ostringstream sstream; std::ostringstream sstream;
sstream << sstream <<
"A scripting command is going to be appended to a non-`.geo' file.\n\n" "A scripting command is going to be appended to a non-`.geo' file. Are\n"
"Are you sure you want to proceed?\n\n" "you sure you want to proceed?\n\n"
"(You probably want to create a new `.geo' file containing the command\n\n" "You probably want to create a new `.geo' file containing the command\n"
"Merge \"" << fileName << ";\n\n" "`Merge \"" << split[1] + split[2] << "\";' and use that file instead.\n\n"
"and use that file instead. To disable this warning in the future, select\n" "(To disable this warning in the future, select `Enable expert mode'\n"
"`Enable expert mode' in the option dialog.)"; "in the option dialog.)";
int ret = Msg::GetAnswer(sstream.str().c_str(), 2, "Cancel", "Proceed as is", int ret = Msg::GetAnswer(sstream.str().c_str(), 2, "Cancel", "Proceed as is",
"Create new `.geo' file"); "Create new `.geo' file");
if(ret == 2){ if(ret == 2){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment