From 226f98e12755b50cafe17d65a4c0aafd3994cd05 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 22 Sep 2014 20:07:17 +0300 Subject: Show duplicates in egg selection dialog. --- src/gui/models/shopitems.h | 3 +++ src/gui/windows/eggselectiondialog.cpp | 1 + 2 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/gui/models/shopitems.h b/src/gui/models/shopitems.h index 925354960..5e8fb2b97 100644 --- a/src/gui/models/shopitems.h +++ b/src/gui/models/shopitems.h @@ -121,6 +121,9 @@ class ShopItems final : public ListModel std::vector &items() A_WARN_UNUSED { return mShopItems; } + void setMergeDuplicates(const bool b) + { mMergeDuplicates = b; } + private: /** * Searches the current items in the shop for the specified diff --git a/src/gui/windows/eggselectiondialog.cpp b/src/gui/windows/eggselectiondialog.cpp index bac963235..22527e3c6 100644 --- a/src/gui/windows/eggselectiondialog.cpp +++ b/src/gui/windows/eggselectiondialog.cpp @@ -63,6 +63,7 @@ void EggSelectionDialog::initButtons() // TRANSLATORS: egg selection dialog button mSellButton->setCaption(_("Select")); mSellButton->adjustSize(); + mShopItems->setMergeDuplicates(false); } void EggSelectionDialog::sellAction(const ActionEvent &event) -- cgit v1.2.3-60-g2f50