From aeee2a08027b177495635262114374f085351ce7 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 19 Apr 2020 19:33:19 +0200 Subject: 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 --- profile-widget/profilewidget2.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); -- cgit v1.2.3-70-g09d2