Changed: Open in ReadOnly the process

This commit is contained in:
kervala 2016-10-21 14:26:46 +02:00
parent aa42c17fed
commit 60e927a3a0

View file

@ -426,7 +426,7 @@ QString getVersionFromExecutable(const QString &path)
// launch executable with --version argument // launch executable with --version argument
QProcess process; QProcess process;
process.setProcessChannelMode(QProcess::MergedChannels); process.setProcessChannelMode(QProcess::MergedChannels);
process.start(path, QStringList() << "--version", QIODevice::ReadWrite); process.start(path, QStringList() << "--version", QIODevice::ReadOnly);
if (!process.waitForStarted()) if (!process.waitForStarted())
{ {