From 37c6fe44e4839c226e9514887974f22fd86831e0 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 30 Jun 2018 13:52:06 +0200 Subject: Dive pictures: remove unnecessary check for no dives This fixes a bug introduced in fbe1144eaf7e800a014c7a97b846835ba9f3bc7f: 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 --- qt-models/divepicturemodel.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qt-models/divepicturemodel.cpp b/qt-models/divepicturemodel.cpp index 541f88027..f84146168 100644 --- a/qt-models/divepicturemodel.cpp +++ b/qt-models/divepicturemodel.cpp @@ -64,10 +64,6 @@ void DivePictureModel::updateDivePictures() Thumbnailer::instance()->clearWorkQueue(); } - // if the dive_table is empty, quit - if (dive_table.nr == 0) - return; - int i; struct dive *dive; for_each_dive (i, dive) { -- cgit v1.2.3-70-g09d2