diff options
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 2 | ||||
-rw-r--r-- | profile-widget/profilewidget2.cpp | 4 | ||||
-rw-r--r-- | profile-widget/profilewidget2.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index cb1179d8c..a0a0dded0 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -783,7 +783,7 @@ void MainWindow::refreshProfile() { showProfile(); configureToolbar(); - graphics->replot(current_dive); + graphics->plotDive(current_dive, true); DivePictureModel::instance()->updateDivePictures(); } diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 365f4758d..b516b1544 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -379,10 +379,10 @@ void ProfileWidget2::setupItemOnScene() gasYAxis->setZValue(timeAxis->zValue() + 1); } -void ProfileWidget2::replot(struct dive *d) +void ProfileWidget2::replot() { dataModel->clear(); - plotDive(d, true, false); + plotDive(nullptr, true, false); } void ProfileWidget2::createPPGas(PartialPressureGasItem *item, int verticalColumn, color_index_t color, color_index_t colorAlert, diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h index e00bda074..6461f83ef 100644 --- a/profile-widget/profilewidget2.h +++ b/profile-widget/profilewidget2.h @@ -108,7 +108,7 @@ slots: // Necessary to call from QAction's signals. void actionRequestedReplot(bool triggered); void setEmptyState(); void setProfileState(); - void replot(dive *d = 0); + void replot(); #ifndef SUBSURFACE_MOBILE void plotPictures(); void removePictures(const QVector<QString> &fileUrls); |