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:
Olivier Goffart
2010-08-30 12:47:29 +02:00
parent 88601712c6
commit 437ec03a35

View File

@@ -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)),