From 601607488ae529b7dfd9bd55afd0e89e42762281 Mon Sep 17 00:00:00 2001 From: Andrei Karas <akaras@inbox.ru> Date: Tue, 28 Oct 2014 19:19:02 +0300 Subject: Dehardcode default spells/commands. Read commands from defaultcommands.xml. Also improve a bit saving commands in spellmanager. --- src/gui/windowmanager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui') diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index bd68f09bc..c786fa501 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -26,6 +26,7 @@ #include "configuration.h" #include "game.h" #include "settings.h" +#include "spellshortcut.h" #include "touchmanager.h" #include "gui/gui.h" @@ -124,6 +125,8 @@ void WindowManager::deleteWindows() delete2(helpWindow); delete2(setupWindow); delete2(userPalette); + delete2(spellManager) + delete2(spellShortcut) } void WindowManager::initTitle() -- cgit v1.2.3-70-g09d2