From 62a7ad8a4f8cc297c8a0eb6468fb27086de368d0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Oct 2012 01:56:35 +0300 Subject: Allow open inventory and some other actions while buy window is open. --- src/gui/buydialog.cpp | 10 ---------- src/gui/buydialog.h | 3 --- 2 files changed, 13 deletions(-) (limited to 'src/gui') diff --git a/src/gui/buydialog.cpp b/src/gui/buydialog.cpp index e30da6702..30eed9ae2 100644 --- a/src/gui/buydialog.cpp +++ b/src/gui/buydialog.cpp @@ -22,7 +22,6 @@ #include "gui/buydialog.h" -#include "keyboardconfig.h" #include "logger.h" #include "shopitem.h" #include "units.h" @@ -79,9 +78,6 @@ void BuyDialog::init() setMinHeight(230); setDefaultSize(260, 230, ImageRect::CENTER); - mEnabledKeyboard = keyboard.isEnabled(); - keyboard.setEnabled(false); - mShopItems = new ShopItems; mShopItemList = new ShopListBox(mShopItems, mShopItems); @@ -355,9 +351,3 @@ void BuyDialog::closeAll() (*it)->close(); } } - -void BuyDialog::scheduleDelete() -{ - keyboard.setEnabled(mEnabledKeyboard); - Window::scheduleDelete(); -} diff --git a/src/gui/buydialog.h b/src/gui/buydialog.h index 3bdf3a845..352f2a7ff 100644 --- a/src/gui/buydialog.h +++ b/src/gui/buydialog.h @@ -123,8 +123,6 @@ class BuyDialog final : public Window, public gcn::ActionListener, */ static void closeAll(); - void scheduleDelete(); - private: typedef std::list DialogList; static DialogList instances; @@ -150,7 +148,6 @@ class BuyDialog final : public Window, public gcn::ActionListener, int mAmountItems; int mMaxItems; std::string mNick; - bool mEnabledKeyboard; }; #endif -- cgit v1.2.3-70-g09d2