]> git.lyx.org Git - features.git/commitdiff
UNDO: single quotes in filenames are possible
authorPeter Kümmel <syntheticpp@gmx.net>
Fri, 18 Dec 2009 19:35:32 +0000 (19:35 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Fri, 18 Dec 2009 19:35:32 +0000 (19:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32582 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/Systemcall.cpp

index c5ac165bef9a9fad8b69e5ee968b647e6abcd138..4ea084028de7b478b45e259a26196d705c2a21e6 100644 (file)
@@ -82,7 +82,7 @@ string const parsecmd(string const & cmd, string & outfile)
 
        for (size_t i = 0; i < cmd.length(); ++i) {
                char c = cmd[i];
-                if ((c == '"' || c == '\'') && !escaped)
+               if (c == '"' && !escaped)
                        inquote = !inquote;
                else if (c == '\\' && !escaped)
                        escaped = !escaped;
@@ -103,11 +103,7 @@ string const parsecmd(string const & cmd, string & outfile)
 int Systemcall::startscript(Starttype how, string const & what, bool process_events)
 {
        string outfile;
-        QString cmd = toqstr(parsecmd(what, outfile));
-        if (cmd.contains("'")) {
-            LYXERR0("Systemcall: '" << cmd << "' contains single quotes ', please check configuration, ' will be replaced by \"");
-            cmd = cmd.replace("'","\"");
-        }
+       QString cmd = toqstr(parsecmd(what, outfile));
 
        SystemcallPrivate d(outfile);