From e2c634feac15ca83200e7d2573879595787d5b6b Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Thu, 18 Dec 2014 13:25:14 +0100 Subject: [PATCH] Consistent coloring --- src/gui/widgets/BasicBlockWidget.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/widgets/BasicBlockWidget.cxx b/src/gui/widgets/BasicBlockWidget.cxx index 282eab2..faaa2a6 100644 --- a/src/gui/widgets/BasicBlockWidget.cxx +++ b/src/gui/widgets/BasicBlockWidget.cxx @@ -21,6 +21,9 @@ void BasicBlockWidget::addItem(uint8_t* bytes, size_t num_bytes, } QString old_text = _widget.text(); + if (old_text == "") { + old_text = ""; + } QString new_text = old_text.remove("
") + "" + bytestring + -- 2.39.5