From b1d2dc573da58236e8a972bbab7a52345aeee8c1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 3 Apr 2012 02:57:47 +0300 Subject: Add option clear to context menu in drops window. --- src/gui/popupmenu.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/gui/popupmenu.cpp') diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index d37e8f351..d896b9420 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -1403,13 +1403,10 @@ void PopupMenu::handleLink(const std::string &link, } } } - else if (link == "load old drop shortcuts") + else if (link == "clear drops") { if (dropShortcut) - { - dropShortcut->load(true); - dropShortcut->save(); - } + dropShortcut->clear(); } else if (link == "edit spell" && mSpell) { @@ -2022,8 +2019,7 @@ void PopupMenu::showDropPopup(int x, int y, Item *item) mBrowserBox->addRow("chat", _("Add to chat")); mBrowserBox->addRow("##3---"); } - mBrowserBox->addRow("load old drop shortcuts", - _("Load old drop shortcuts")); + mBrowserBox->addRow("clear drops", _("Clear drop window")); mBrowserBox->addRow("##3---"); mBrowserBox->addRow("cancel", _("Cancel")); -- cgit v1.2.3-60-g2f50