Dive pictures: remove unnecessary check for no dives

This fixes a bug introduced in fbe1144eaf:
For an empty log, in DivePictureModel::updateDivePictures()
beginResetModel() would be called without a corresponding endResetModel().

It is unclear whether this can ever be hit, because in the no-dives
case, at least in the desktop version no profile is shown.
Note, that this makes the check double-unnecessary.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-06-30 13:52:06 +02:00 committed by Dirk Hohndel
parent 988d6682f2
commit 37c6fe44e4

View file

@ -64,10 +64,6 @@ void DivePictureModel::updateDivePictures()
Thumbnailer::instance()->clearWorkQueue(); Thumbnailer::instance()->clearWorkQueue();
} }
// if the dive_table is empty, quit
if (dive_table.nr == 0)
return;
int i; int i;
struct dive *dive; struct dive *dive;
for_each_dive (i, dive) { for_each_dive (i, dive) {