forked from qt-creator/qt-creator
ProfileChooser: make more robust in case of no configured profiles
Change-Id: I53945617cc616d2bfe4726b4e6e45cad7b400c44 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -1702,10 +1702,12 @@ void DebuggerPluginPrivate::attachToQmlPort()
|
||||
if (dlg.exec() != QDialog::Accepted)
|
||||
return;
|
||||
|
||||
Profile *profile = dlg.profile();
|
||||
QTC_ASSERT(profile, return);
|
||||
setConfigValue(_("LastQmlServerPort"), dlg.port());
|
||||
setConfigValue(_("LastProfile"), dlg.profile()->id().toString());
|
||||
setConfigValue(_("LastProfile"), profile->id().toString());
|
||||
|
||||
fillParameters(&sp, dlg.profile());
|
||||
fillParameters(&sp, profile);
|
||||
sp.qmlServerAddress = sp.connParams.host;
|
||||
sp.qmlServerPort = dlg.port();
|
||||
sp.startMode = AttachToRemoteProcess;
|
||||
|
||||
Reference in New Issue
Block a user