forked from qt-creator/qt-creator
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:
committed by
Tobias Hunger
parent
cba1da4678
commit
56c873fdac
@@ -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,
|
// Since killing the blackberry-connect script won't kill the java process it launches,
|
||||||
// let's just call the java process directly instead.
|
// let's just call the java process directly instead.
|
||||||
QString command = env.searchInPath(QLatin1String("java"));
|
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;
|
QStringList args;
|
||||||
args << QLatin1String("-Xmx512M");
|
args << QLatin1String("-Xmx512M");
|
||||||
|
|||||||
Reference in New Issue
Block a user