From 6f7e13ac70499ccc74ecf9d03aea65883f530b5c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 6 Jun 2013 11:22:08 +0900 Subject: 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 --- qt-ui/models.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/models.h') diff --git a/qt-ui/models.h b/qt-ui/models.h index 99d028aca..a012ec6bd 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -144,7 +144,7 @@ class DiveTripModel : public QAbstractItemModel Q_OBJECT public: - enum Layout{TREE, LIST}; + enum Layout{TREE, LIST, CURRENT}; DiveTripModel(QObject *parent = 0); ~DiveTripModel(); -- cgit v1.2.3-70-g09d2