profile: clear pictures when displaying empty dive

Since the profile does not listen to DivePictureModel resets anymore,
the pictures weren't cleared when clearing the canvas. Do this
explicitly.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-04-19 19:33:19 +02:00 committed by Dirk Hohndel
parent d62e60277c
commit aeee2a0802

View file

@ -1109,6 +1109,9 @@ void ProfileWidget2::setEmptyState()
if (currentState == EMPTY)
return;
#ifndef SUBSURFACE_MOBILE
clearPictures();
#endif
disconnectTemporaryConnections();
setBackgroundBrush(getColor(::BACKGROUND, isGrayscale));
dataModel->clear();