diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-19 21:23:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-19 21:23:52 +0300 |
commit | 99d68089180167c0ed23bf167ef57eb551114b45 (patch) | |
tree | 840ce77c4a1a8d7f6d73d02accc00ef07f6af00a /src/gui/popups | |
parent | 66dadb1212115f4b11e5d3c0857b5a25bd6399ee (diff) | |
download | mv-99d68089180167c0ed23bf167ef57eb551114b45.tar.gz mv-99d68089180167c0ed23bf167ef57eb551114b45.tar.bz2 mv-99d68089180167c0ed23bf167ef57eb551114b45.tar.xz mv-99d68089180167c0ed23bf167ef57eb551114b45.zip |
Update skill popup if any skill was changed.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/skillpopup.cpp | 6 | ||||
-rw-r--r-- | src/gui/popups/skillpopup.h | 2 |
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; |