Yet another fix of the previous commit.

This commit is contained in:
bubnikv 2018-05-21 23:24:18 +02:00
parent 6b4fe7975f
commit 512b6dfd88

View File

@ -952,7 +952,7 @@ void desktop_open_datadir_folder()
// Enclose the path into single quotes on Unix / OSX. All single quote characters need to be escaped // Enclose the path into single quotes on Unix / OSX. All single quote characters need to be escaped
// inside a file name. // inside a file name.
cmd += '\''; cmd += '\'';
boost::replace_all(path, "'", "\\'"); cmd += boost::replace_all(path, "'", "\\'");
cmd += '\''; cmd += '\'';
#endif #endif
::wxExecute(wxString::FromUTF8(cmd.c_str()), wxEXEC_ASYNC, nullptr); ::wxExecute(wxString::FromUTF8(cmd.c_str()), wxEXEC_ASYNC, nullptr);