From c620624989c4c9ece95c7343d90c842958b2737e Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Fri, 11 Jun 2010 12:37:31 +0200 Subject: [PATCH] debugger: fix breakpoint setting using context menu --- src/plugins/debugger/debuggerplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 45ee41015ae..cb5184a1f72 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1215,7 +1215,7 @@ void DebuggerPlugin::breakpointSetRemoveMarginActionTriggered() QTC_ASSERT(handler, return); QString str = act->data().toString(); int pos = str.lastIndexOf(':'); - toggleBreakpoint(str, pos); + toggleBreakpoint(str.left(pos), str.mid(pos + 1).toInt()); } void DebuggerPlugin::breakpointEnableDisableMarginActionTriggered() -- GitLab