summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 0996130c4..6ed77fb19 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -192,7 +192,16 @@ void DiveListView::reloadHeaderActions()
QString title = QString("%1").arg(model()->headerData(i, Qt::Horizontal).toString());
QString settingName = QString("showColumn%1").arg(i);
QAction *a = new QAction(title, header());
- bool shown = s.value(settingName, true).toBool();
+ bool showHeaderFirstRun = !(
+ i == DiveTripModel::MAXCNS
+ || i == DiveTripModel::NITROX
+ || i == DiveTripModel::OTU
+ || i == DiveTripModel::TEMPERATURE
+ || i == DiveTripModel::TOTALWEIGHT
+ || i == DiveTripModel::SUIT
+ || i == DiveTripModel::CYLINDER
+ || i == DiveTripModel::SAC );
+ bool shown = s.value(settingName, showHeaderFirstRun).toBool();
a->setCheckable(true);
a->setChecked(shown);
a->setProperty("index", i);