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
Tobias Hunger
qt-creator
Commits
92e85247
Commit
92e85247
authored
Dec 16, 2010
by
hjk
Browse files
debugger: hot fix for not activated editors while stepping
parent
5ed71055
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerengine.cpp
View file @
92e85247
...
...
@@ -533,6 +533,11 @@ void DebuggerEngine::gotoLocation(const QString &file, int line, bool setMarker)
if
(
setMarker
)
d
->
m_locationMark
.
reset
(
new
LocationMark
(
file
,
line
));
// FIXME: Breaks with split views.
if
(
!
d
->
m_memoryAgent
.
hasVisibleEditor
())
editorManager
->
activateEditor
(
editors
.
back
());
//qDebug() << "MEMORY: " << d->m_memoryAgent.hasVisibleEditor();
}
void
DebuggerEngine
::
gotoLocation
(
const
StackFrame
&
frame
,
bool
setMarker
)
...
...
src/plugins/debugger/memoryagent.cpp
View file @
92e85247
...
...
@@ -161,5 +161,14 @@ void MemoryAgent::updateContents()
QMetaObject
::
invokeMethod
(
editor
->
widget
(),
"updateContents"
);
}
bool
MemoryAgent
::
hasVisibleEditor
()
const
{
QList
<
IEditor
*>
visible
=
EditorManager
::
instance
()
->
visibleEditors
();
foreach
(
QPointer
<
IEditor
>
editor
,
m_editors
)
if
(
visible
.
contains
(
editor
.
data
()))
return
true
;
return
false
;
}
}
// namespace Internal
}
// namespace Debugger
src/plugins/debugger/memoryagent.h
View file @
92e85247
...
...
@@ -52,6 +52,7 @@ public:
~
MemoryAgent
();
enum
{
BinBlockSize
=
1024
};
bool
hasVisibleEditor
()
const
;
public
slots
:
// Called by engine to create a new view.
...
...
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