From 6a763f58ad8ab52b9b444b096a8f298d440e0a65 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Aug 2016 20:06:21 +0300 Subject: Show header in skill level selection menu. --- src/gui/popups/popupmenu.cpp | 8 +++----- src/gui/popups/popupmenu.h | 2 -- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'src/gui') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index c3bd94087..b7a7a282e 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -2414,15 +2414,13 @@ void PopupMenu::showSkillLevelPopup(const SkillInfo *const info) mItemId = info->id; // using mItemIndex as skill level mItemIndex = info->level; - showSkillLevelMenu(); -} -void PopupMenu::showSkillLevelMenu() -{ for (int f = 0; f < maxCards; f ++) mItemCards[f] = 0; mBrowserBox->clearRows(); - // mItemIndex as skill level + // TRANSLATORS: popup menu item + // TRANSLATORS: skill level header + mBrowserBox->addRow(_("Select skill level")); for (int f = 1; f <= mItemIndex; f ++) { mBrowserBox->addRow(strprintf("/selectskilllevel %d %d", mItemId, f), diff --git a/src/gui/popups/popupmenu.h b/src/gui/popups/popupmenu.h index b84375dcd..45c9bdda7 100644 --- a/src/gui/popups/popupmenu.h +++ b/src/gui/popups/popupmenu.h @@ -249,8 +249,6 @@ class PopupMenu final : public Popup, public LinkHandler bool addBeingMenu(); - void showSkillLevelMenu(); - BrowserBox *mBrowserBox A_NONNULLPOINTER; ScrollArea *mScrollArea A_NONNULLPOINTER; -- cgit v1.2.3-70-g09d2