summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profile/profilewidget2.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index c2de05d3c..ca176a3d4 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -433,6 +433,11 @@ void ProfileWidget2::settingsChanged()
dataModel->clear();
plotDives(QList<dive*>() << getDiveById(diveId));
}
+
+ bool rulerVisible = s.value("rulergraph", false).toBool();
+ rulerItem->setVisible(rulerVisible);
+ rulerItem->destNode()->setVisible(rulerVisible );
+ rulerItem->sourceNode()->setVisible(rulerVisible );
}
void ProfileWidget2::resizeEvent(QResizeEvent* event)
@@ -591,7 +596,7 @@ void ProfileWidget2::setProfileState()
}
}
- bool rulerVisible = s.value("rulervisible", false).toBool();
+ bool rulerVisible = s.value("rulergraph", false).toBool();
rulerItem->setVisible(rulerVisible);
rulerItem->destNode()->setVisible(rulerVisible );
rulerItem->sourceNode()->setVisible(rulerVisible );