From 087a2f8802bb91ca06d4d82af4a132dd9a70267e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Aug 2016 02:24:15 +0300 Subject: Trigger asserts if unknown commands executed in popup menu or in chat. --- src/gui/popups/popupmenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/popups') 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) -- cgit v1.2.3-70-g09d2