summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/selldialog.cpp4
-rw-r--r--src/gui/widgets/selldialog.h5
2 files changed, 5 insertions, 4 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);
diff --git a/src/gui/widgets/selldialog.h b/src/gui/widgets/selldialog.h
index e94619f1f..709756990 100644
--- a/src/gui/widgets/selldialog.h
+++ b/src/gui/widgets/selldialog.h
@@ -23,6 +23,7 @@
#ifndef GUI_WIDGETS_SELLDIALOG_H
#define GUI_WIDGETS_SELLDIALOG_H
+#include "enums/simpletypes/issell.h"
#include "enums/simpletypes/itemcolor.h"
#include "gui/widgets/window.h"
@@ -52,7 +53,7 @@ class SellDialog notfinal : public Window,
/**
* Constructor.
*/
- SellDialog(const bool isSell,
+ SellDialog(const IsSell isSell,
const bool advanced);
A_DELETE_COPY(SellDialog)
@@ -144,7 +145,7 @@ class SellDialog notfinal : public Window,
int mMaxItems;
int mAmountItems;
- bool mIsSell;
+ IsSell mIsSell;
bool mAdvanced;
};