summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/buydialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index 19c369053..a6a369e28 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -191,8 +191,9 @@ BuyDialog::BuyDialog() :
Window(_("Create items"), Modal_false, nullptr, "buy.xml"),
ActionListener(),
SelectionListener(),
- mSortModel(nullptr),
- mSortDropDown(nullptr),
+ mSortModel(new SortListModelBuy),
+ mSortDropDown(new DropDown(this, mSortModel, false,
+ Modal_false, this, "sort")),
mFilterTextField(new TextField(this, "", LoseFocusOnTab_true,
this, "namefilter", true)),
mFilterLabel(nullptr),