summaryrefslogtreecommitdiff
path: root/src/gui/widgets/selldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-02 19:59:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-02 19:59:32 +0300
commit914b7555f6b2b28497f70eaaadc6650961ef7f6b (patch)
tree723333f6d3da50b849437cb7026b482033fdc5b0 /src/gui/widgets/selldialog.cpp
parentc1cf7bb66f36310c14254954d24eb039f0386dd7 (diff)
downloadmv-914b7555f6b2b28497f70eaaadc6650961ef7f6b.tar.gz
mv-914b7555f6b2b28497f70eaaadc6650961ef7f6b.tar.bz2
mv-914b7555f6b2b28497f70eaaadc6650961ef7f6b.tar.xz
mv-914b7555f6b2b28497f70eaaadc6650961ef7f6b.zip
Add strong typed bool type IsSell.
Diffstat (limited to 'src/gui/widgets/selldialog.cpp')
-rw-r--r--src/gui/widgets/selldialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/selldialog.cpp b/src/gui/widgets/selldialog.cpp
index 76cea21f2..956cacb2f 100644
--- a/src/gui/widgets/selldialog.cpp
+++ b/src/gui/widgets/selldialog.cpp
@@ -47,7 +47,7 @@
SellDialog::DialogList SellDialog::instances;
-SellDialog::SellDialog(const bool isSell,
+SellDialog::SellDialog(const IsSell isSell,
const bool advanced) :
// TRANSLATORS: sell dialog name
Window(_("Sell"), Modal_false, nullptr, "sell.xml"),
@@ -122,7 +122,7 @@ void SellDialog::postInit()
ContainerPlacer placer;
placer = getPlacer(0, 0);
- if (mIsSell)
+ if (mIsSell == IsSell_true)
{
// TRANSLATORS: sell dialog button
mIncreaseButton = new Button(this, _("+"), "inc", this);