forked from qt-creator/qt-creator
Qml Debugger: fix the fact that the selection rectangle is not updated.
This happened if the file is openned after the debugger has started
This commit is contained in:
@@ -130,6 +130,7 @@ void QmlJSLiveTextPreview::associateEditor(Core::IEditor *editor)
|
||||
if (editor->id() == QmlJSEditor::Constants::C_QMLJSEDITOR_ID) {
|
||||
QmlJSEditor::Internal::QmlJSTextEditor* qmljsEditor = qobject_cast<QmlJSEditor::Internal::QmlJSTextEditor*>(editor->widget());
|
||||
if (qmljsEditor && !m_editors.contains(qmljsEditor)) {
|
||||
qmljsEditor->setUpdateSelectedElements(true);
|
||||
m_editors << qmljsEditor;
|
||||
connect(qmljsEditor,
|
||||
SIGNAL(selectedElementsChanged(QList<int>,QString)),
|
||||
|
||||
Reference in New Issue
Block a user