forked from qt-creator/qt-creator
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 <eike.ziller@qt.io>
This commit is contained in:
@@ -171,7 +171,7 @@ public:
|
||||
|
||||
bool ModulesModel::contextMenuEvent(const ItemViewEvent &ev)
|
||||
{
|
||||
ModuleItem *item = itemForIndexAtLevel<1>(ev.index());
|
||||
ModuleItem *item = itemForIndexAtLevel<1>(ev.sourceModelIndex());
|
||||
|
||||
const bool enabled = engine->debuggerActionsEnabled();
|
||||
const bool canReload = engine->hasCapability(ReloadModuleCapability);
|
||||
|
||||
Reference in New Issue
Block a user