summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-10 20:20:36 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-10 20:20:36 +0300
commit501f9934731114562c3659918d9d7b39625eb7b5 (patch)
treeafefc8debeff97d40141a342135da8e7ab5cb9bb /src/gui/popupmenu.cpp
parent307818fecbd1f258c668a1667e76e950e9d22622 (diff)
downloadmv-501f9934731114562c3659918d9d7b39625eb7b5.tar.gz
mv-501f9934731114562c3659918d9d7b39625eb7b5.tar.bz2
mv-501f9934731114562c3659918d9d7b39625eb7b5.tar.xz
mv-501f9934731114562c3659918d9d7b39625eb7b5.zip
Allow add skills to shortcuts bar (same as for magic and script commands).
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 5e5f310dc..d37e8f351 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -49,6 +49,7 @@
#include "gui/ministatuswindow.h"
#include "gui/outfitwindow.h"
#include "gui/selldialog.h"
+#include "gui/skilldialog.h"
#include "gui/socialwindow.h"
#include "gui/textcommandeditor.h"
#include "gui/textdialog.h"
@@ -1109,10 +1110,14 @@ void PopupMenu::handleLink(const std::string &link,
}
}
}
- else if (spellManager)
+ else if (mItemId < SKILL_MIN_ID && spellManager)
{
spellManager->useItem(mItemId);
}
+ else if (skillDialog)
+ {
+ skillDialog->useItem(mItemId);
+ }
}
else if (link == "chat")
{