forked from qt-creator/qt-creator
Debugger: Fix crash
Change-Id: Id21eb93178c97b3317d1ac7951f81365dfa6d31a Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -423,8 +423,8 @@ bool StartApplicationDialog::run(QWidget *parent, QSettings *settings, DebuggerS
|
|||||||
sp->serverStartScript = newParameters.serverStartScript;
|
sp->serverStartScript = newParameters.serverStartScript;
|
||||||
sp->debugInfoLocation = newParameters.debugInfoLocation;
|
sp->debugInfoLocation = newParameters.debugInfoLocation;
|
||||||
|
|
||||||
bool isLocal = DeviceKitInformation::device(kit)->type()
|
IDevice::ConstPtr dev = DeviceKitInformation::device(kit);
|
||||||
== ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE;
|
bool isLocal = !dev || (dev->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE);
|
||||||
if (!attachRemote)
|
if (!attachRemote)
|
||||||
sp->startMode = isLocal ? StartExternal : StartRemoteProcess;
|
sp->startMode = isLocal ? StartExternal : StartRemoteProcess;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user