[PATCH] profilewidget2.cpp: hide the heartbeat graph on an empty state

Lubomir I. Ivanov neolit123 at gmail.com
Sun Dec 6 11:36:21 PST 2015


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

Opening Subsurface for the first time with heartbeat graph visible
and then immediately doing File->New shows the logo/background in the
profile space while hiding everything except the heartbeat graph.

This patch makes sure that the graph is hidden with everything
else on an empty profile state.

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 profile-widget/profilewidget2.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 1e8f38e..3bf147b 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -974,6 +974,8 @@ void ProfileWidget2::setEmptyState()
 	gflineItem->setVisible(false);
 	mouseFollowerHorizontal->setVisible(false);
 	mouseFollowerVertical->setVisible(false);
+	heartBeatAxis->setVisible(false);
+	heartBeatItem->setVisible(false);
 
 #define HIDE_ALL(TYPE, CONTAINER) \
 	Q_FOREACH (TYPE *item, CONTAINER) item->setVisible(false);
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list