aboutsummaryrefslogtreecommitdiff
path: root/src/qt/coincontroldialog.h
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2020-05-05 23:56:21 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2020-05-05 23:56:21 +0100
commita8b5f1b133d4f23975a3fbfb7a415b17261466ee (patch)
tree136912f1ccc5884530521cbe689a338849ac5373 /src/qt/coincontroldialog.h
parentfbd522721cb89ef0efea0c1bc912c00b268d1c2a (diff)
gui: Fix manual coin control with multiple wallets loaded
Diffstat (limited to 'src/qt/coincontroldialog.h')
-rw-r--r--src/qt/coincontroldialog.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/qt/coincontroldialog.h b/src/qt/coincontroldialog.h
index efc06a7656..c4145c48a0 100644
--- a/src/qt/coincontroldialog.h
+++ b/src/qt/coincontroldialog.h
@@ -43,20 +43,18 @@ class CoinControlDialog : public QDialog
Q_OBJECT
public:
- explicit CoinControlDialog(const PlatformStyle *platformStyle, QWidget *parent = nullptr);
+ explicit CoinControlDialog(CCoinControl& coin_control, WalletModel* model, const PlatformStyle *platformStyle, QWidget *parent = nullptr);
~CoinControlDialog();
- void setModel(WalletModel *model);
-
// static because also called from sendcoinsdialog
- static void updateLabels(WalletModel*, QDialog*);
+ static void updateLabels(CCoinControl& m_coin_control, WalletModel*, QDialog*);
static QList<CAmount> payAmounts;
- static CCoinControl *coinControl();
static bool fSubtractFeeFromAmount;
private:
Ui::CoinControlDialog *ui;
+ CCoinControl& m_coin_control;
WalletModel *model;
int sortColumn;
Qt::SortOrder sortOrder;