summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp7
-rw-r--r--src/client.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 36651b01e..39c7beb52 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1109,7 +1109,7 @@ int Client::gameExec()
ADDBUTTON(mThemesButton, new Button(mDesktop,
// TRANSLATORS: theme tab quick button
_("Theme"), "Themes", this))
- ADDBUTTON(mThemesButton, new Button(mDesktop,
+ ADDBUTTON(mHelpButton, new Button(mDesktop,
// TRANSLATORS: theme tab quick button
_("Help"), "help", this))
#ifdef ANDROID
@@ -1527,6 +1527,8 @@ int Client::gameExec()
mVideoButton = nullptr;
delete mThemesButton;
mThemesButton = nullptr;
+ delete mHelpButton;
+ mHelpButton = nullptr;
delete mPerfomanceButton;
mPerfomanceButton = nullptr;
delete mDesktop;
@@ -2756,6 +2758,9 @@ void Client::resizeVideo(int width, int height, const bool always)
x -= mThemesButton->getWidth() + mButtonSpacing;
mThemesButton->setPosition(x, mButtonPadding);
+
+ x -= mHelpButton->getWidth() + mButtonSpacing;
+ mHelpButton->setPosition(x, mButtonPadding);
#ifdef ANDROID
x -= mCloseButton->getWidth() + mButtonSpacing;
mCloseButton->setPosition(x, mButtonPadding);
diff --git a/src/client.h b/src/client.h
index 65e02e006..c5fb1e505 100644
--- a/src/client.h
+++ b/src/client.h
@@ -412,6 +412,7 @@ private:
Desktop *mDesktop;
Button *mSetupButton;
Button *mVideoButton;
+ Button *mHelpButton;
Button *mThemesButton;
Button *mPerfomanceButton;
#ifdef ANDROID