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

This commit is contained in:
hjk
2011-01-04 16:23:10 +01:00
parent ee090e7248
commit 9d72c55347

View File

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