diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-16 02:24:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-16 02:24:15 +0300 |
commit | 087a2f8802bb91ca06d4d82af4a132dd9a70267e (patch) | |
tree | 30e45a169f28127b123f369e6f2aad3ed56d34d8 /src/gui/popups | |
parent | b1876f6c72222dae051bd964dab89f24a66d96c0 (diff) | |
download | manaplus-087a2f8802bb91ca06d4d82af4a132dd9a70267e.tar.gz manaplus-087a2f8802bb91ca06d4d82af4a132dd9a70267e.tar.bz2 manaplus-087a2f8802bb91ca06d4d82af4a132dd9a70267e.tar.xz manaplus-087a2f8802bb91ca06d4d82af4a132dd9a70267e.zip |
Trigger asserts if unknown commands executed in popup menu or in chat.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 8257033b4..fc3a52a77 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -92,6 +92,7 @@ #include "resources/skill/skillinfo.h" #include "utils/copynpaste.h" +#include "utils/checkutils.h" #include "utils/gettext.h" #include "utils/process.h" @@ -1690,7 +1691,7 @@ void PopupMenu::handleLink(const std::string &link, // Unknown actions else if (link != "cancel") { - logger->log("PopupMenu: Warning, unknown action '%s'", link.c_str()); + reportAlways("PopupMenu: Warning, unknown action '%s'", link.c_str()); } if (!mAllowCleanMenu) |