summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-06 02:50:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 02:50:51 +0300
commit7092b86c5b9bcfc1b377d090f65ce35427cecc4c (patch)
tree595b792c8a7fe5ac159fcb97b2b9df44b114dcf6 /src/gui/windows
parent1c00cf20fb58492489f8137161c552fe4d70d2cb (diff)
downloadmanaplus-7092b86c5b9bcfc1b377d090f65ce35427cecc4c.tar.gz
manaplus-7092b86c5b9bcfc1b377d090f65ce35427cecc4c.tar.bz2
manaplus-7092b86c5b9bcfc1b377d090f65ce35427cecc4c.tar.xz
manaplus-7092b86c5b9bcfc1b377d090f65ce35427cecc4c.zip
eathena: fix skills removing.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/skilldialog.cpp10
-rw-r--r--src/gui/windows/skilldialog.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index b2902556e..a7ca3b8a0 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -201,6 +201,16 @@ void SkillDialog::clearSkills()
mSkills.clear();
}
+void SkillDialog::hideSkills()
+{
+ FOR_EACH (SkillMap::iterator, it, mSkills)
+ {
+ SkillInfo *const info = (*it).second;
+ if (info)
+ info->visible = false;
+ }
+}
+
void SkillDialog::loadSkills()
{
clearSkills();
diff --git a/src/gui/windows/skilldialog.h b/src/gui/windows/skilldialog.h
index 8e2c325a0..c67d69b10 100644
--- a/src/gui/windows/skilldialog.h
+++ b/src/gui/windows/skilldialog.h
@@ -73,6 +73,8 @@ class SkillDialog final : public Window,
void clearSkills();
+ void hideSkills();
+
void loadSkills();
bool updateSkill(const int id,