summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-16 16:00:33 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-16 12:23:38 -0700
commitd39b1aedcd9dedecfca54c91661a81406b80c6ec (patch)
tree722d67b585e200cd298058308563aeca78c85a29 /qt-ui/divelistview.h
parente3cb36498d97750a9a961be21f5adb9073fa6863 (diff)
downloadsubsurface-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/divelistview.h')
-rw-r--r--qt-ui/divelistview.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h
index ce6238d25..09830b7b5 100644
--- a/qt-ui/divelistview.h
+++ b/qt-ui/divelistview.h
@@ -29,6 +29,8 @@ public:
void keyPressEvent(QKeyEvent* event);
void keyReleaseEvent(QKeyEvent*);
void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command);
+ void reload();
+
Q_SIGNALS:
void currentDiveChanged(int divenr);
private: