diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-16 16:00:33 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-16 12:23:38 -0700 |
commit | d39b1aedcd9dedecfca54c91661a81406b80c6ec (patch) | |
tree | 722d67b585e200cd298058308563aeca78c85a29 /qt-ui/profilegraphics.h | |
parent | e3cb36498d97750a9a961be21f5adb9073fa6863 (diff) | |
download | subsurface-d39b1aedcd9dedecfca54c91661a81406b80c6ec.tar.gz |
Fix loading a second dive, after the first file was loaded.
This patch fixes loading a second dive-file after the first
one had been loaded. it simply clears some information and
makes sure that the current selected dive is invalid when
the file closes. I also did a bit of code cleanup on this one
to make things simpler in the future.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.h')
-rw-r--r-- | qt-ui/profilegraphics.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h index 7cf88cbc3..453b8cf03 100644 --- a/qt-ui/profilegraphics.h +++ b/qt-ui/profilegraphics.h @@ -64,6 +64,7 @@ public: ProfileGraphicsView(QWidget* parent = 0); void plot(struct dive *d); bool eventFilter(QObject* obj, QEvent* event); + void clear(); protected: void resizeEvent(QResizeEvent *event); |