Commit c362f621 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Port QProcess::start(QString) methods

parent eaef1920
...@@ -128,7 +128,7 @@ bool FileViewBazaarPlugin::beginRetrieval(const QString& directory) ...@@ -128,7 +128,7 @@ bool FileViewBazaarPlugin::beginRetrieval(const QString& directory)
QString baseDir; QString baseDir;
QProcess process1; QProcess process1;
process1.setWorkingDirectory(directory); process1.setWorkingDirectory(directory);
process1.start(QLatin1String("bzr root")); process1.start(QLatin1String("bzr"), {"root"});
while (process1.waitForReadyRead()) { while (process1.waitForReadyRead()) {
char buffer[512]; char buffer[512];
while (process1.readLine(buffer, sizeof(buffer)) > 0) { while (process1.readLine(buffer, sizeof(buffer)) > 0) {
...@@ -152,7 +152,7 @@ bool FileViewBazaarPlugin::beginRetrieval(const QString& directory) ...@@ -152,7 +152,7 @@ bool FileViewBazaarPlugin::beginRetrieval(const QString& directory)
QProcess process2; QProcess process2;
process2.setWorkingDirectory(directory); process2.setWorkingDirectory(directory);
process2.start(QLatin1String("bzr ignored")); process2.start(QLatin1String("bzr"), {"ignored"});
while (process2.waitForReadyRead()) { while (process2.waitForReadyRead()) {
char buffer[512]; char buffer[512];
while (process2.readLine(buffer, sizeof(buffer)) > 0) { while (process2.readLine(buffer, sizeof(buffer)) > 0) {
...@@ -463,7 +463,7 @@ void FileViewBazaarPlugin::execBazaarCommand(const QString& command, ...@@ -463,7 +463,7 @@ void FileViewBazaarPlugin::execBazaarCommand(const QString& command,
Q_EMIT infoMessage(infoMsg); Q_EMIT infoMessage(infoMsg);
QProcess process; QProcess process;
process.start(QLatin1String("bzr plugins")); process.start(QLatin1String("bzr"), {"plugins"});
bool foundQbzr = false; bool foundQbzr = false;
while (process.waitForReadyRead()) { while (process.waitForReadyRead()) {
char buffer[512]; char buffer[512];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment