summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp2
-rw-r--r--profile-widget/profilewidget2.cpp7
-rw-r--r--profile-widget/profilewidget2.h1
3 files changed, 1 insertions, 9 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index 3418fbddd..3aea3fe39 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -355,7 +355,7 @@ void MainTab::updateNotes(const struct dive *d)
void MainTab::updateMode(struct dive *d)
{
ui.DiveType->setCurrentIndex(get_dive_dc(d, dc_number)->divemode);
- MainWindow::instance()->graphics->recalcCeiling();
+ MainWindow::instance()->graphics->replot();
}
static QDateTime timestampToDateTime(timestamp_t when)
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 186638a41..40bd92fb9 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -839,13 +839,6 @@ void ProfileWidget2::plotDive(const struct dive *d, bool force, bool doClearPict
#endif
}
-void ProfileWidget2::recalcCeiling()
-{
-#ifndef SUBSURFACE_MOBILE
- diveCeiling->recalc();
-#endif
-}
-
void ProfileWidget2::dateTimeChanged()
{
emit dateTimeChangedItems();
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h
index 2956b18a5..a5895da63 100644
--- a/profile-widget/profilewidget2.h
+++ b/profile-widget/profilewidget2.h
@@ -87,7 +87,6 @@ public:
bool eventFilter(QObject *, QEvent *) override;
void clearHandlers();
#endif
- void recalcCeiling();
void setToolTipVisibile(bool visible);
State currentState;
int animSpeed;