Commit 9d72c553 authored by hjk's avatar hjk
Browse files

debugger: there's always a currentEngine(), no need to double-check.

parent ee090e72
......@@ -1838,7 +1838,7 @@ void DebuggerPluginPrivate::requestContextMenu(ITextEditor *editor,
menu->addAction(act);
}
// Run to, jump to line below in stopped state.
if (currentEngine() && currentEngine()->state() == InferiorStopOk) {
if (currentEngine()->state() == InferiorStopOk) {
menu->addSeparator();
const QString runText =
DebuggerEngine::tr("Run to Line %1").arg(lineNumber);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment