summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-02 23:49:34 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-02 23:49:34 +0300
commitc7855b90048daf581fcbbf1ebaa31f3248fa74f4 (patch)
tree0ef7dda91da8b6a0584a7720c3be56eb7d5c23de /src
parent7e17bd4af4609a4106dab910b4741800eadf3ff5 (diff)
downloadmanaplus-c7855b90048daf581fcbbf1ebaa31f3248fa74f4.tar.gz
manaplus-c7855b90048daf581fcbbf1ebaa31f3248fa74f4.tar.bz2
manaplus-c7855b90048daf581fcbbf1ebaa31f3248fa74f4.tar.xz
manaplus-c7855b90048daf581fcbbf1ebaa31f3248fa74f4.zip
Show sorting drop down box in item create window.
Diffstat (limited to 'src')
-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),