diff options
author | Dario Lombardo <lomato@gmail.com> | 2020-04-12 00:14:02 +0200 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2020-04-13 01:10:24 +0000 |
commit | 71f6d9411a38a3e98598b4c7b68f3f94917fcb86 (patch) | |
tree | ee080bc7d8af1ce2bb38dd86fbad05454d3ca521 /ui | |
parent | ada1a5c770e00d087385e2ec870291d67e190959 (diff) |
Qt: don't use a widget if not set.
Bug: 16489
Change-Id: I9585120fb07f3c41ac2ddc7fb9eeb9b17542f5e8
Reviewed-on: https://code.wireshark.org/review/36789
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/capture_options_dialog.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/qt/capture_options_dialog.cpp b/ui/qt/capture_options_dialog.cpp index 2876e03ce0..e9f46f0417 100644 --- a/ui/qt/capture_options_dialog.cpp +++ b/ui/qt/capture_options_dialog.cpp @@ -1287,11 +1287,9 @@ QWidget* InterfaceTreeDelegate::createEditor(QWidget *parent, const QStyleOption default: break; } -// if (w) { -// ti->setSizeHint(index.column(), w->sizeHint()); -// } } - w->setAutoFillBackground(true); + if (w) + w->setAutoFillBackground(true); return w; } |