mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: explicitly clear profile items
In contrast to most other items, which are cleared in the setEmptyState() function, the profile items are cleared indirectly via a signal from the model. Very hard to follow and indeed, I thought I could just remove the slot. Do this explicitly instead for deterministic code. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
e61466e178
commit
02fbaffe4c
3 changed files with 10 additions and 9 deletions
|
@ -1123,6 +1123,8 @@ void ProfileWidget2::setEmptyState()
|
|||
heartBeatAxis->setVisible(false);
|
||||
heartBeatItem->setVisible(false);
|
||||
#endif
|
||||
for (AbstractProfilePolygonItem *item: profileItems)
|
||||
item->clear();
|
||||
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
hideAll(allTissues);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue