* src/support/SystemcallPrivate.cpp:

- 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
This commit is contained in:
Jürgen Spitzmüller 2007-12-11 10:48:48 +00:00
parent 0c8e63f887
commit 02ee7dfb74

View File

@ -52,11 +52,11 @@ int SystemcallPrivate::start(const std::string & cmd, bool waitForFinished)
if (progress) { if (progress) {
progress->clearMessages(); progress->clearMessages();
progress->appendMessage(qt_("Starting process with command ")); progress->appendMessage(qt_("Starting process with command "));
progress->appendMessage(cmd.c_str()); progress->appendMessage(toqstr(cmd));
} }
process.setReadChannel(QProcess::StandardOutput); 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 // wait some seconds until the process has started
process.waitForStarted(10 * 1000); process.waitForStarted(10 * 1000);
if (waitForFinished) { if (waitForFinished) {