diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-19 19:33:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-06 13:58:09 -0700 |
commit | aeee2a08027b177495635262114374f085351ce7 (patch) | |
tree | 0753586b37ae39abe67ed24c85ad2f26c350950a | |
parent | d62e60277c6fa5f7b8bc612bd1c6accd3f6d0044 (diff) | |
download | subsurface-aeee2a08027b177495635262114374f085351ce7.tar.gz |
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>
-rw-r--r-- | profile-widget/profilewidget2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index e1a0415ea..10c52f95d 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -1109,6 +1109,9 @@ void ProfileWidget2::setEmptyState() if (currentState == EMPTY) return; +#ifndef SUBSURFACE_MOBILE + clearPictures(); +#endif disconnectTemporaryConnections(); setBackgroundBrush(getColor(::BACKGROUND, isGrayscale)); dataModel->clear(); |