mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
988d6682f2
commit
37c6fe44e4
1 changed files with 0 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue