diff options
author | hjk <qthjk@ovi.com> | 2012-08-15 16:20:11 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-08-16 12:36:50 +0200 |
commit | f880c0e5b5863470371f87622f3b4981bd635612 (patch) | |
tree | 4ab1979b08765e2a544926bf8682dae7717eeab7 /src/plugins/debugger/debuggerplugin.cpp | |
parent | 6228fb1d78b508abeeff094f2aecf4b276c9ed37 (diff) | |
download | qt-creator-f880c0e5b5863470371f87622f3b4981bd635612.tar.gz |
debugger: use host from profile for the attach to qml option
Change-Id: I81903ba752b9758fb4b9e342d40ac756716caecf
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index d737a70e37..9efea5a1d2 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1606,19 +1606,11 @@ void DebuggerPluginPrivate::attachToQmlPort() DebuggerStartParameters sp; AttachToQmlPortDialog dlg(mainWindow()); - const QVariant qmlServerAddress = configValue(_("LastQmlServerAddress")); - if (qmlServerAddress.isValid()) { - dlg.setHost(qmlServerAddress.toString()); - } else { - dlg.setHost(sp.qmlServerAddress); - } - const QVariant qmlServerPort = configValue(_("LastQmlServerPort")); - if (qmlServerPort.isValid()) { + if (qmlServerPort.isValid()) dlg.setPort(qmlServerPort.toInt()); - } else { + else dlg.setPort(sp.qmlServerPort); - } const QVariant profileId = configValue(_("LastProfile")); if (profileId.isValid()) @@ -1627,14 +1619,12 @@ void DebuggerPluginPrivate::attachToQmlPort() if (dlg.exec() != QDialog::Accepted) return; - setConfigValue(_("LastQmlServerAddress"), dlg.host()); setConfigValue(_("LastQmlServerPort"), dlg.port()); setConfigValue(_("LastProfile"), dlg.profile()->id().toString()); fillParameters(&sp, dlg.profile()); - sp.qmlServerAddress = dlg.host(); + sp.qmlServerAddress = sp.connParams.host; sp.qmlServerPort = dlg.port(); - sp.startMode = AttachToRemoteProcess; sp.closeMode = KillAtClose; sp.languages = QmlLanguage; |