diff options
author | hjk <[email protected]> | 2019-02-28 15:21:50 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2019-04-02 12:53:29 +0000 |
commit | f7c350d7824c55575451864d427f3da9373ee1b4 (patch) | |
tree | 3ca7420452931be30674364dc75470b7f1e2629a /src/plugins/debugger/watchhandler.cpp | |
parent | 5ca9ac47772be3e84875f13dde2e45f87956243c (diff) |
TreeView: Fix mapping to source models in case ProxyModels are involved
Visible e.g. in context menu handling of the debugger's module view.
Change-Id: I342ed262c9e3dcdf98590003a7930cb8ef4ca0d2
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 6ec3a26d58f..8087e776387 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -1638,7 +1638,7 @@ void WatchModel::inputNewExpression() bool WatchModel::contextMenuEvent(const ItemViewEvent &ev) { - WatchItem *item = itemForIndex(ev.index()); + WatchItem *item = itemForIndex(ev.sourceModelIndex()); const QString exp = item ? item->expression() : QString(); const QString name = item ? item->name : QString(); |