diff --git a/oscar/daily.cpp b/oscar/daily.cpp index 2531adac..e1c5ab2d 100644 --- a/oscar/daily.cpp +++ b/oscar/daily.cpp @@ -2474,6 +2474,7 @@ void Daily::on_ZombieMeter_valueChanged(int action) } journal->settings[Journal_ZombieMeter]=ui->ZombieMeter->value(); journal->SetChanged(true); + mainwin->updateOverview(); } void Daily::on_bookmarkTable_itemChanged(QTableWidgetItem *item) @@ -2552,6 +2553,7 @@ void Daily::on_weightSpinBox_editingFinished() if (g) g->setDay(nullptr); } journal->SetChanged(true); + mainwin->updateOverview(); } void Daily::on_ouncesSpinBox_valueChanged(int arg1) diff --git a/oscar/mainwindow.cpp b/oscar/mainwindow.cpp index 252f1328..f461b4f3 100644 --- a/oscar/mainwindow.cpp +++ b/oscar/mainwindow.cpp @@ -746,6 +746,11 @@ int MainWindow::importCPAP(ImportPath import, const QString &message) return c; } +void MainWindow::updateOverview() +{ + if (overview) + overview->ReloadGraphs(); +} void MainWindow::finishCPAPImport() { if (daily) diff --git a/oscar/mainwindow.h b/oscar/mainwindow.h index e50d21c1..33d3ab5b 100644 --- a/oscar/mainwindow.h +++ b/oscar/mainwindow.h @@ -137,6 +137,8 @@ class MainWindow : public QMainWindow //! \brief Returns the Overview Tab object Overview *getOverview() { return overview; } + void updateOverview(); + /*! \fn void RestartApplication(bool force_login=false); \brief Closes down OSCAR and restarts it \param bool force_login