From b10d13223742c1640211ba801784effa4b543505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Fri, 6 Jul 2018 17:37:27 +0200 Subject: [PATCH] Remove unnecessary newline from VisualNavbar tooltip --- src/widgets/VisualNavbar.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/widgets/VisualNavbar.cpp b/src/widgets/VisualNavbar.cpp index 6d328d6f..4f80bfa9 100644 --- a/src/widgets/VisualNavbar.cpp +++ b/src/widgets/VisualNavbar.cpp @@ -259,8 +259,14 @@ QString VisualNavbar::toolTipForAddress(RVA address) auto sections = sectionsForAddress(address); if (sections.count()) { ret += "\nSections: \n"; + bool first = true; for (auto section : sections) { - ret += " " + section + "\n"; + if (!first) { + ret += "\n"; + } else { + first = false; + } + ret += " " + section; } } return ret;