From 135e4e0bda8a0f07471501975665f6157758b779 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Aug 2016 19:35:51 +0300 Subject: Show skill level selection menu for skill with max level 1. --- src/gui/popups/popupmenu.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index e7e866491..1bfa0e3e1 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -2373,13 +2373,10 @@ void PopupMenu::showSkillPopup(const SkillInfo *const info) // TRANSLATORS: popup menu header mBrowserBox->addRow(_("Skill")); - if (info->level > 1) - { - mBrowserBox->addRow("/showskilllevels 'ITEMID'", - // TRANSLATORS: popup menu item - // TRANSLATORS: set skill level - _("Skill level...")); - } + mBrowserBox->addRow("/showskilllevels 'ITEMID'", + // TRANSLATORS: popup menu item + // TRANSLATORS: set skill level + _("Skill level...")); mBrowserBox->addRow("/showskilltypes 'ITEMID'", // TRANSLATORS: popup menu item // TRANSLATORS: set skill cast type @@ -2393,7 +2390,7 @@ void PopupMenu::showSkillPopup(const SkillInfo *const info) void PopupMenu::showSkillLevelPopup(const SkillInfo *const info) { - if (!info || info->level <= 1) + if (!info) return; setMousePos(); -- cgit v1.2.3-70-g09d2