diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-02 23:49:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-02 23:49:34 +0300 |
commit | c7855b90048daf581fcbbf1ebaa31f3248fa74f4 (patch) | |
tree | 0ef7dda91da8b6a0584a7720c3be56eb7d5c23de /src/gui/windows | |
parent | 7e17bd4af4609a4106dab910b4741800eadf3ff5 (diff) | |
download | manaverse-c7855b90048daf581fcbbf1ebaa31f3248fa74f4.tar.gz manaverse-c7855b90048daf581fcbbf1ebaa31f3248fa74f4.tar.bz2 manaverse-c7855b90048daf581fcbbf1ebaa31f3248fa74f4.tar.xz manaverse-c7855b90048daf581fcbbf1ebaa31f3248fa74f4.zip |
Show sorting drop down box in item create window.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/buydialog.cpp | 5 |
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), |