mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
d62e60277c
commit
aeee2a0802
1 changed files with 3 additions and 0 deletions
|
@ -1109,6 +1109,9 @@ void ProfileWidget2::setEmptyState()
|
|||
if (currentState == EMPTY)
|
||||
return;
|
||||
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
clearPictures();
|
||||
#endif
|
||||
disconnectTemporaryConnections();
|
||||
setBackgroundBrush(getColor(::BACKGROUND, isGrayscale));
|
||||
dataModel->clear();
|
||||
|
|
Loading…
Reference in a new issue