aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerrunner.cpp
diff options
context:
space:
mode:
authorKai Koehne <[email protected]>2010-09-02 17:17:35 +0200
committerKai Koehne <[email protected]>2010-09-03 12:29:41 +0200
commit6f11765daedce104b3ea5d5f83f15b830a774a55 (patch)
treecd1db7f5deeb15b115132cf93c13221965fce30d /src/plugins/debugger/debuggerrunner.cpp
parentcacd1a91eb74444ce09eb4ac1eab7bab6261a3b9 (diff)
Qml: Allow user to configure port used (all project types)
Reviewed-by: dt
Diffstat (limited to 'src/plugins/debugger/debuggerrunner.cpp')
-rw-r--r--src/plugins/debugger/debuggerrunner.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp
index ea8e1071376..0f80b683dbe 100644
--- a/src/plugins/debugger/debuggerrunner.cpp
+++ b/src/plugins/debugger/debuggerrunner.cpp
@@ -154,9 +154,7 @@ static DebuggerStartParameters localStartParameters(RunConfiguration *runConfigu
DebuggerLanguages activeLangs = DebuggerUISwitcher::instance()->activeDebugLanguages();
if (activeLangs & QmlLanguage) {
sp.qmlServerAddress = QLatin1String("127.0.0.1");
- sp.qmlServerPort = rc->environment().value("QML_DEBUG_SERVER_PORT").toUInt();
- if (sp.qmlServerPort == 0)
- sp.qmlServerPort = Constants::QML_DEFAULT_DEBUG_SERVER_PORT;
+ sp.qmlServerPort = runConfiguration->qmlDebugServerPort();
sp.environment << QString(Constants::E_QML_DEBUG_SERVER_PORT)
+ QLatin1Char('=') + QString::number(sp.qmlServerPort);