diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-09 18:11:56 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-10 15:57:39 -0800 |
commit | 54e8fe5d9e588c3345ded27982edaf72654fc8d1 (patch) | |
tree | 14460c74f1a9bf9cdd228a933fac509bf39043a2 /profile-widget/divetooltipitem.h | |
parent | 193513a61fc7fcfb31c1cb969f7fe05452abd67c (diff) | |
download | subsurface-54e8fe5d9e588c3345ded27982edaf72654fc8d1.tar.gz |
profile: pass dive to ToolTipItem::refresh()
Don't access the global displayed_dive variable in a step
to make the profile reentrant.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/divetooltipitem.h')
-rw-r--r-- | profile-widget/divetooltipitem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/divetooltipitem.h b/profile-widget/divetooltipitem.h index c9e61b6d4..cb18b34df 100644 --- a/profile-widget/divetooltipitem.h +++ b/profile-widget/divetooltipitem.h @@ -36,7 +36,7 @@ public: void expand(); void clear(); void addToolTip(const QString &toolTip, const QIcon &icon = QIcon(), const QPixmap &pixmap = QPixmap()); - void refresh(const QPointF &pos); + void refresh(const dive *d, const QPointF &pos); bool isExpanded() const; void persistPos(); void readPos(); |