diff options
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index df45628d6..3a5d17664 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -756,6 +756,11 @@ void ProfileWidget2::setProfileState() } } rulerItem->setVisible(prefs.rulergraph); + #define HIDE_ALL(TYPE, CONTAINER) \ + Q_FOREACH (TYPE *item, CONTAINER) item->setVisible(false); + HIDE_ALL(DiveHandler, handles); + HIDE_ALL(QGraphicsSimpleTextItem, gases); + #undef HIDE_ALL } void ProfileWidget2::setAddState() |