From b039026214adecdcd41d7156cc1e45beb324740e Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 1 Feb 2018 11:22:14 +0100 Subject: [PATCH] Debugger: Handle double click of sub break points Double clicking on a child break point (e.g. multi location break point) now jumps to the respective parent break point. Change-Id: I93497f8eec78408909dddd159002e171805814d7 Reviewed-by: Christian Stenger Reviewed-by: hjk --- src/plugins/debugger/breakhandler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index 8938c07708e..fc164e3035c 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -1943,6 +1943,8 @@ bool BreakHandler::setData(const QModelIndex &idx, const QVariant &value, int ro editBreakpoints({b}, ev.view()); else b.gotoLocation(); + } else if (LocationItem *l = itemForIndexAtLevel<2>(idx)) { + Breakpoint(l->parent()).gotoLocation(); } else { addBreakpoint(); }