From d3442a81b3c24fb4e0726baaed42c669e1c102a4 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 6 Jun 2013 14:04:50 +0900 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.cpp | 4 +--- 1 file changed, 1 insertion(+), 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(model()); - - // repopulat the selections. + // repopulate the selections. Q_FOREACH(struct dive *d, currentSelectedDives) { selectDive(d, first); first = false; -- cgit v1.2.3-70-g09d2