summaryrefslogtreecommitdiff
path: root/src/actions/windows.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-20 13:59:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-20 13:59:24 +0300
commit08a6e7e710f34b4363513b6c583ce1a6660c96b5 (patch)
tree5aa4732a26ba00709694a3bf00c322143034d209 /src/actions/windows.cpp
parente3009cfe9cc0a824450d3e71a0ce8d6b5cd9ff91 (diff)
downloadplus-08a6e7e710f34b4363513b6c583ce1a6660c96b5.tar.gz
plus-08a6e7e710f34b4363513b6c583ce1a6660c96b5.tar.bz2
plus-08a6e7e710f34b4363513b6c583ce1a6660c96b5.tar.xz
plus-08a6e7e710f34b4363513b6c583ce1a6660c96b5.zip
Add action for open yellow bar settings page (quick page).
Diffstat (limited to 'src/actions/windows.cpp')
-rw-r--r--src/actions/windows.cpp18
1 files changed, 18 insertions, 0 deletions
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