summaryrefslogtreecommitdiff
path: root/src/gui/buydialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/buydialog.cpp')
-rw-r--r--src/gui/buydialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/buydialog.cpp b/src/gui/buydialog.cpp
index 94305c9a0..ed152cc82 100644
--- a/src/gui/buydialog.cpp
+++ b/src/gui/buydialog.cpp
@@ -86,9 +86,9 @@ void BuyDialog::init()
mScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
mSlider = new Slider(1.0);
- mQuantityLabel = new Label(strprintf("%d / %d", mAmountItems, mMaxItems));
+ mQuantityLabel = new Label(this, strprintf("%d / %d", mAmountItems, mMaxItems));
mQuantityLabel->setAlignment(gcn::Graphics::CENTER);
- mMoneyLabel = new Label(strprintf(_("Price: %s / Total: %s"), "", ""));
+ mMoneyLabel = new Label(this, strprintf(_("Price: %s / Total: %s"), "", ""));
mAmountField = new IntTextField(this, 1, 1, 123);
mAmountField->setActionEventId("amount");
@@ -96,7 +96,7 @@ void BuyDialog::init()
mAmountField->setSendAlwaysEvents(true);
mAmountField->setEnabled(false);
- mAmountLabel = new Label(_("Amount:"));
+ mAmountLabel = new Label(this, _("Amount:"));
mAmountLabel->adjustSize();
// TRANSLATORS: This is a narrow symbol used to denote 'increasing'.