summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/skilldialog.cpp')
-rw-r--r--src/gui/windows/skilldialog.cpp10
1 files changed, 10 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();