Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
4fe5e3be
Commit
4fe5e3be
authored
Feb 02, 2011
by
Christiaan Janssen
Browse files
QmlInspector: avoiding feedback loop between inspector and editor
parent
1b1b5032
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmljsinspector/qmljsinspector.cpp
View file @
4fe5e3be
...
...
@@ -680,9 +680,13 @@ void InspectorUi::gotoObjectReferenceDefinition(const QDeclarativeDebugObjectRef
fileName
=
m_projectFinder
.
findFile
(
fileName
);
Core
::
EditorManager
*
editorManager
=
Core
::
EditorManager
::
instance
();
Core
::
IEditor
*
currentEditor
=
editorManager
->
currentEditor
();
Core
::
IEditor
*
editor
=
editorManager
->
openEditor
(
fileName
);
TextEditor
::
ITextEditor
*
textEditor
=
qobject_cast
<
TextEditor
::
ITextEditor
*>
(
editor
);
if
(
currentEditor
!=
editor
)
m_selectionCallbackExpected
=
true
;
if
(
textEditor
)
{
QDeclarativeDebugObjectReference
ref
=
objectReferenceForLocation
(
fileName
);
if
(
ref
.
debugId
()
!=
obj
.
debugId
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment