diff --git a/src/plugins/debugger/qml/qmljsscriptconsole.cpp b/src/plugins/debugger/qml/qmljsscriptconsole.cpp index 2d953dfb90f48dd9db775cedf2c415c0d8eecd98..e83ac29617ae2f44018a6dad82dee0c47784c15b 100644 --- a/src/plugins/debugger/qml/qmljsscriptconsole.cpp +++ b/src/plugins/debugger/qml/qmljsscriptconsole.cpp @@ -209,6 +209,8 @@ void QmlJSScriptConsole::setInferiorStopped(bool inferiorStopped) void QmlJSScriptConsole::setQmlAdapter(QmlAdapter *adapter) { d->adapter = adapter; + if (adapter) + connect(adapter, SIGNAL(selectionChanged()), this, SLOT(onSelectionChanged())); clear(); }