summaryrefslogtreecommitdiff
path: root/src/gui/didyouknowwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/didyouknowwindow.cpp')
-rw-r--r--src/gui/didyouknowwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/didyouknowwindow.cpp b/src/gui/didyouknowwindow.cpp
index c6880b420..3e47a3952 100644
--- a/src/gui/didyouknowwindow.cpp
+++ b/src/gui/didyouknowwindow.cpp
@@ -53,8 +53,8 @@ DidYouKnowWindow::DidYouKnowWindow():
mBrowserBox(new BrowserBox(this)),
mScrollArea(new ScrollArea(mBrowserBox,
true, "didyouknow_background.xml")),
- mButtonPrev(new Button(_("< Previous"), "prev", this)),
- mButtonNext(new Button(_("Next >"), "next", this)),
+ mButtonPrev(new Button(this, _("< Previous"), "prev", this)),
+ mButtonNext(new Button(this, _("Next >"), "next", this)),
mOpenAgainCheckBox(new CheckBox(_("Auto open this window"),
config.getBoolValue("showDidYouKnow"), this, "openagain"))
{
@@ -69,7 +69,7 @@ DidYouKnowWindow::DidYouKnowWindow():
setDefaultSize(500, 400, ImageRect::CENTER);
mBrowserBox->setOpaque(false);
- Button *const okButton = new Button(_("Close"), "close", this);
+ Button *const okButton = new Button(this, _("Close"), "close", this);
mBrowserBox->setLinkHandler(this);
mBrowserBox->setFont(gui->getHelpFont());