From 08a6e7e710f34b4363513b6c583ce1a6660c96b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 20 Apr 2015 13:59:24 +0300 Subject: Add action for open yellow bar settings page (quick page). --- src/actions/windows.cpp | 18 ++++++++++++++++++ src/actions/windows.h | 1 + 2 files changed, 19 insertions(+) (limited to 'src/actions') diff --git a/src/actions/windows.cpp b/src/actions/windows.cpp index 6b359ff8d..4008245fa 100644 --- a/src/actions/windows.cpp +++ b/src/actions/windows.cpp @@ -53,6 +53,8 @@ #include "gui/widgets/tabs/chat/chattab.h" +#include "utils/gettext.h" + #ifdef EATHENA_SUPPORT #include "net/serverfeatures.h" #endif @@ -314,4 +316,20 @@ impHandler0(updaterWindowShow) return true; } +impHandler0(quickWindowShow) +{ + if (setupWindow) + { + if (setupWindow->isWindowVisible()) + { + setupWindow->doCancel(); + } + setupWindow->setVisible(true); + setupWindow->activateTab(_("Quick")); + setupWindow->requestMoveToTop(); + return true; + } + return false; +} + } // namespace Actions diff --git a/src/actions/windows.h b/src/actions/windows.h index e3a4120cf..59ffc502e 100644 --- a/src/actions/windows.h +++ b/src/actions/windows.h @@ -53,6 +53,7 @@ namespace Actions decHandler(updaterWindowShow); decHandler(bankWindowShow); decHandler(cartWindowShow); + decHandler(quickWindowShow); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2