Cleanup: remove bogus assignment in startFilterDiveSites()

In MultiFilterSortModel::startFilterDiveSites(), the setting of the
dive sites to be filtered is done later in the code. Therefore,
remove the assignment in the first line of the function. Under
some circumstances, this would prevent a needed map reload!

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-09-21 14:38:10 +02:00 committed by Dirk Hohndel
parent 4f0582ea0b
commit b3e5e5eef4

View file

@ -299,7 +299,6 @@ void MultiFilterSortModel::clearFilter()
void MultiFilterSortModel::startFilterDiveSites(QVector<dive_site *> ds)
{
dive_sites = ds;
if (++diveSiteRefCount > 1) {
setFilterDiveSite(ds);
} else {