summaryrefslogtreecommitdiff
path: root/src/gui/widgets/radiogroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/radiogroup.cpp')
-rw-r--r--src/gui/widgets/radiogroup.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/radiogroup.cpp b/src/gui/widgets/radiogroup.cpp
index 6e759cba8..3d20b7248 100644
--- a/src/gui/widgets/radiogroup.cpp
+++ b/src/gui/widgets/radiogroup.cpp
@@ -35,7 +35,8 @@ RadioGroup::RadioGroup(const Widget2 *const widget,
gcn::Widget *RadioGroup::createWidget(const std::string &text)
{
- RadioButton *const widget = new RadioButton(text, mGroup, mCount == 0);
+ RadioButton *const widget = new RadioButton(
+ this, text, mGroup, mCount == 0);
widget->adjustSize();
return widget;
}