QNX: Fix startup warning about "program not set" from QProcess.

Change-Id: I962768b47f21558f122d1b679b3583899fc3c0be
Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Friedemann Kleint
2013-04-22 11:24:52 +02:00
committed by Tobias Hunger
parent cba1da4678
commit 56c873fdac

View File

@@ -71,6 +71,12 @@ void BlackBerryDeviceConnection::connectDevice(const ProjectExplorer::IDevice::C
// Since killing the blackberry-connect script won't kill the java process it launches,
// let's just call the java process directly instead.
QString command = env.searchInPath(QLatin1String("java"));
if (command.isEmpty()) {
const QString line = tr("Error connecting to device: java could not be found in the environment.") + QLatin1Char('\n');
emit processOutput(line);
m_messageLog.append(line);
return;
}
QStringList args;
args << QLatin1String("-Xmx512M");