summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/divelistview.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp
index 30364a8eb..9c5ea8b1c 100644
--- a/desktop-widgets/divelistview.cpp
+++ b/desktop-widgets/divelistview.cpp
@@ -47,6 +47,8 @@ DiveListView::DiveListView(QWidget *parent) : QTreeView(parent), mouseClickSelec
header()->setStretchLastSection(true);
header()->setSortIndicatorShown(true);
+ header()->setSectionsClickable(true);
+ connect(header(), &QHeaderView::sectionPressed, this, &DiveListView::headerClicked);
installEventFilter(this);
@@ -495,9 +497,6 @@ void DiveListView::reload(DiveTripModel::Layout layout, bool forceSort)
else
currentLayout = layout;
- header()->setSectionsClickable(true);
- connect(header(), SIGNAL(sectionPressed(int)), this, SLOT(headerClicked(int)), Qt::UniqueConnection);
-
MultiFilterSortModel::instance()->setLayout(layout);
if (!forceSort)