summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-06 11:22:08 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-06 11:28:20 +0900
commit6f7e13ac70499ccc74ecf9d03aea65883f530b5c (patch)
tree2145fc1337f83a033f6ffcc66a8bd45354bff787 /qt-ui/divelistview.h
parent3f7490c2053090bfd54de2fcb4df23c5be7b5ffd (diff)
downloadsubsurface-6f7e13ac70499ccc74ecf9d03aea65883f530b5c.tar.gz
Try to get rid of unnecessary reloads of the dive list
Don't call refreshDisplay() after preferences change. This strangely somehow leads to a situation where I need to move the mouse over the dive list before changes to the units are reflected. When calling reload() do not force layout change / resort unless that is the intention. 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, 1 insertions, 1 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h
index 745c64d69..a9b986f97 100644
--- a/qt-ui/divelistview.h
+++ b/qt-ui/divelistview.h
@@ -24,7 +24,7 @@ public:
DiveListView(QWidget *parent = 0);
void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
void currentChanged(const QModelIndex& current, const QModelIndex& previous);
- void reload(DiveTripModel::Layout layout = DiveTripModel::TREE, bool forceSort = true);
+ void reload(DiveTripModel::Layout layout, bool forceSort = true);
bool eventFilter(QObject* , QEvent* );
void unselectDives();
void selectDive(struct dive *, bool scrollto = false);