aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-06-06 14:04:50 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-07 13:36:01 +0900
commitd3442a81b3c24fb4e0726baaed42c669e1c102a4 (patch)
tree55e0764a36a2a673113e6de078f33aa75d3d8892 /qt-ui/divelistview.cpp
parent3cca9eaf94963a1c028637c7a275bae5f8a863da (diff)
downloadsubsurface-d3442a81b3c24fb4e0726baaed42c669e1c102a4.tar.gz
Fix unused variable warning and spelling
Commit 4b405caa2c47 ("Clean up divelist dive selection") made the sort model variable in headerClicked unused, so get rid of it. Fix a speling eror closeby while at it. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index f0cb01a82..cbd62408b 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -117,9 +117,7 @@ void DiveListView::headerClicked(int i)
sortByColumn(i, Qt::DescendingOrder);
}
- QSortFilterProxyModel *m = qobject_cast<QSortFilterProxyModel*>(model());
-
- // repopulat the selections.
+ // repopulate the selections.
Q_FOREACH(struct dive *d, currentSelectedDives) {
selectDive(d, first);
first = false;