diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-04 11:12:11 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-04 11:12:11 -0700 |
commit | f63605e02e4656b60c6c095f4289dbffa293bc2d (patch) | |
tree | 93fd7eed42b5893226d75296b8ed1381134b7833 /qt-ui/divelistview.cpp | |
parent | 9035e1b53cb97464662343012da47f9cb13a5124 (diff) | |
parent | 834800a1794f1ed92f447a2995767ce820473fed (diff) | |
download | subsurface-f63605e02e4656b60c6c095f4289dbffa293bc2d.tar.gz |
Merge branch 'bugfixes' of git://github.com/tcanabrava/subsurface
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r-- | qt-ui/divelistview.cpp | 11 |
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); |