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
62060ce7
Commit
62060ce7
authored
Jul 20, 2010
by
hjk
Browse files
debugger: make requestMark() more robust for editors not representing files
parent
8d54298c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerengine.cpp
View file @
62060ce7
...
...
@@ -1193,6 +1193,7 @@ void DebuggerEnginePrivate::doInterruptInferior()
void
DebuggerEnginePrivate
::
doShutdownInferior
()
{
QTC_ASSERT
(
state
()
==
InferiorShutdownRequested
,
qDebug
()
<<
state
());
m_engine
->
resetLocation
();
m_targetState
=
DebuggerFinished
;
m_engine
->
showMessage
(
_
(
"CALL: SHUTDOWN INFERIOR"
));
...
...
src/plugins/debugger/debuggerplugin.cpp
View file @
62060ce7
...
...
@@ -1906,7 +1906,7 @@ void DebuggerPluginPrivate::toggleBreakpoint(const QString &fileName, int lineNu
void
DebuggerPluginPrivate
::
requestMark
(
ITextEditor
*
editor
,
int
lineNumber
)
{
if
(
isDebuggable
(
editor
))
if
(
isDebuggable
(
editor
)
&&
editor
&&
editor
->
file
()
)
toggleBreakpoint
(
editor
->
file
()
->
fileName
(),
lineNumber
);
}
...
...
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