summaryrefslogtreecommitdiff
path: root/ui/qt/byte_view_text.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-05-29 11:33:16 -0700
committerGerald Combs <gerald@wireshark.org>2015-05-30 00:05:38 +0000
commit4ba148771b8f39c8ecc4d496d3eaf861739fdcee (patch)
treefdbcffb58068505a2538201828baddc302be40db /ui/qt/byte_view_text.h
parent6a2bf340014b41697a68183a644e51d72514eb02 (diff)
downloadwireshark-4ba148771b8f39c8ecc4d496d3eaf861739fdcee.tar.gz
Qt: Always draw a byte view.
When we clear the ByteViewTab add an placeholder ByteViewText. Change-Id: I9fbcd7e609c084d5724a30f80aa141b59ab1c0a1 Reviewed-on: https://code.wireshark.org/review/8688 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/byte_view_text.h')
-rw-r--r--ui/qt/byte_view_text.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/byte_view_text.h b/ui/qt/byte_view_text.h
index 4ba8da99f1..805a0880e8 100644
--- a/ui/qt/byte_view_text.h
+++ b/ui/qt/byte_view_text.h
@@ -55,6 +55,7 @@ public:
void setProtocolHighlight(int start, int end);
void setFieldHighlight(int start, int end, guint32 mask = 0, int mask_le = 0);
void setFieldAppendixHighlight(int start, int end);
+ bool isEmpty() { return tvb_ == NULL || proto_tree_ == NULL; }
signals:
void byteFieldHovered(const QString &);