aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/widgets
diff options
context:
space:
mode:
authorPascal Quantin <pascal@wireshark.org>2019-06-12 22:46:57 +0200
committerPascal Quantin <pascal@wireshark.org>2019-06-12 23:08:17 +0000
commitfb0d1ee24edeed29baac1bdb053d1553580d431c (patch)
tree5d525b403ca4c0f89c25d7927ff519917526d0c1 /ui/qt/widgets
parent7c8b21d329c1d8d3f66282a5aeebc2fde31b9957 (diff)
Qt: fix 'open protocol preferences' shortcut for protocol subtrees
Bug: 15836 Change-Id: If0a1b6fbb7a2cf7b73ef91c07a6f1b180fc030a5 Reviewed-on: https://code.wireshark.org/review/33570 Petri-Dish: Pascal Quantin <pascal@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal@wireshark.org>
Diffstat (limited to 'ui/qt/widgets')
-rw-r--r--ui/qt/widgets/pref_module_view.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/qt/widgets/pref_module_view.cpp b/ui/qt/widgets/pref_module_view.cpp
index bd86590f88..579671ea90 100644
--- a/ui/qt/widgets/pref_module_view.cpp
+++ b/ui/qt/widgets/pref_module_view.cpp
@@ -75,6 +75,11 @@ QModelIndex PrefModuleTreeView::findModule(QModelIndex& parent, const QString& n
findIndex = modelIndex;
break;
}
+ if (model()->rowCount(modelIndex) > 0) {
+ findIndex = findModule(modelIndex, name);
+ if (findIndex.isValid())
+ break;
+ }
}
return findIndex;