Fix unused variable warning and spelling

Commit 4b405caa2c ("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>
This commit is contained in:
Linus Torvalds 2013-06-06 14:04:50 +09:00 committed by Dirk Hohndel
parent 3cca9eaf94
commit d3442a81b3

View file

@ -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;