Skip to content

Commit

Permalink
Enclose script name in quotes when selecting a script via the open fi…
Browse files Browse the repository at this point in the history
…le dialog (to prevent whitespace from breaking things)
  • Loading branch information
elverion committed Aug 20, 2015
1 parent b6d7d16 commit 515bfb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -584,7 +584,7 @@ std::string scriptGUIDialog(std::string defaultFilename)
int success = GetOpenFileName(&ofn);
if( success )
{ // User clicked OK
retval = ofn.lpstrFile;
retval = std::string("\"") + ofn.lpstrFile + std::string("\"");
}

// Reset CWD
Expand Down

0 comments on commit 515bfb6

Please sign in to comment.