Undo: update statistics if dive changed

On undo/redo, the dive statistics tab was not updated even
if a selected dive was changed. Fix that.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-10-06 21:31:39 +02:00 committed by Dirk Hohndel
parent c479c5ca36
commit 5c4d163a41
2 changed files with 28 additions and 0 deletions

View file

@ -3,6 +3,7 @@
#define TAB_DIVE_STATISTICS_H
#include "TabBase.h"
#include "core/subsurface-qt/DiveListNotifier.h"
namespace Ui {
class TabDiveStatistics;
@ -16,6 +17,9 @@ public:
void updateData() override;
void clear() override;
private slots:
void divesChanged(const QVector<dive *> &dives, DiveField field);
private:
Ui::TabDiveStatistics *ui;
};