summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-12-06 21:36:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-06 12:19:44 -0800
commit2aed9075254470fbd4ea8a1bdff228300b86fc27 (patch)
tree61ce21e32661ac5f9d441bcd61c8266b0c8a9b92 /profile-widget
parent956d1897345c727af23089cd98cef34597aed9ff (diff)
downloadsubsurface-2aed9075254470fbd4ea8a1bdff228300b86fc27.tar.gz
profilewidget2.cpp: hide the heartbeat graph on an empty state
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@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 1e8f38ed6..3bf147b0f 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);