]> git.lyx.org Git - lyx.git/commitdiff
* src/support/SystemcallPrivate.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 11 Dec 2007 10:48:48 +0000 (10:48 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 11 Dec 2007 10:48:48 +0000 (10:48 +0000)
- QProcess::start and ProgressInterface::appendMessage take a Qstring as an argument.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22081 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/SystemcallPrivate.cpp

index 4aa4b1a3472f7db525c72d696024332ee4e51b62..6bab2f587917627ce6b5f162b533de49618eb8cf 100644 (file)
@@ -52,11 +52,11 @@ int SystemcallPrivate::start(const std::string & cmd, bool waitForFinished)
        if (progress) {
                progress->clearMessages();
                progress->appendMessage(qt_("Starting process with command "));
-               progress->appendMessage(cmd.c_str());
+               progress->appendMessage(toqstr(cmd));
        }
 
        process.setReadChannel(QProcess::StandardOutput);
-       process.start(cmd.c_str(), QStringList(), QIODevice::ReadOnly);
+       process.start(toqstr(cmd), QStringList(), QIODevice::ReadOnly);
        // wait some seconds until the process has started
        process.waitForStarted(10 * 1000);
        if (waitForFinished) {