summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/skillpopup.cpp6
-rw-r--r--src/gui/popups/skillpopup.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/popups/skillpopup.cpp b/src/gui/popups/skillpopup.cpp
index efd9e1f50..f6e1f19a7 100644
--- a/src/gui/popups/skillpopup.cpp
+++ b/src/gui/popups/skillpopup.cpp
@@ -179,3 +179,9 @@ void SkillPopup::mouseMoved(MouseEvent &event)
setVisible(Visible_false);
mLastId = 0;
}
+
+void SkillPopup::reset()
+{
+ mLastId = 0;
+ mLastLevel = 0;
+}
diff --git a/src/gui/popups/skillpopup.h b/src/gui/popups/skillpopup.h
index ab170002f..33d6d50cc 100644
--- a/src/gui/popups/skillpopup.h
+++ b/src/gui/popups/skillpopup.h
@@ -59,6 +59,8 @@ class SkillPopup final : public Popup
void mouseMoved(MouseEvent &event) override final;
+ void reset();
+
private:
Label *mSkillName A_NONNULLPOINTER;
TextBox *mSkillDesc A_NONNULLPOINTER;