summaryrefslogtreecommitdiff
path: root/ui/qt/byte_view_tab.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-06-25 14:18:36 -0700
committerGerald Combs <gerald@wireshark.org>2015-06-25 21:21:23 +0000
commit5265bc3fce6ef664052f901503aa80f84a895db4 (patch)
tree9c6783b9dc7fcb1c0e27097949914a5e36333f4d /ui/qt/byte_view_tab.cpp
parent26dd5d2ac085805a716239a301582e20bda35ae0 (diff)
downloadwireshark-5265bc3fce6ef664052f901503aa80f84a895db4.tar.gz
Make sure the byte view maintains visibility.
In ByteViewTab::clear, make sure we stay hidden or visible as appropriate. Bug: 11313 Change-Id: I12fa5169e840dbc4d27b6525fe6be72e13acce5d Reviewed-on: https://code.wireshark.org/review/9155 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/byte_view_tab.cpp')
-rw-r--r--ui/qt/byte_view_tab.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/byte_view_tab.cpp b/ui/qt/byte_view_tab.cpp
index 4eecd32da6..7fcd0a3267 100644
--- a/ui/qt/byte_view_tab.cpp
+++ b/ui/qt/byte_view_tab.cpp
@@ -53,12 +53,13 @@ void ByteViewTab::addTab(const char *name, tvbuff_t *tvb, proto_tree *tree, QTre
void ByteViewTab::clear()
{
+ bool visible = isVisible();
hide();
while (currentWidget()) {
delete currentWidget();
}
addTab();
- show();
+ setVisible(visible);
}
void ByteViewTab::tabInserted(int index) {