class CoinControlDialog : public QWidget
{
Q_OBJECT
+signals:
+ void beforeClose();
public:
explicit CoinControlDialog(QWidget *parent = 0);
static QList<qint64> payAmounts;
static CCoinControl *coinControl;
+protected:
+ void closeEvent(QCloseEvent* e);
+
private:
Ui::CoinControlDialog *ui;
WalletModel *model;
fNewRecipientAllowed = true;
coinControl = new CoinControlDialog(0);
- QAction *updateLabes = new QAction(coinControl);
- connect(updateLabes, SIGNAL(close()), this, SLOT(coinControlUpdateLabels()));
+ connect(coinControl, SIGNAL(beforeClose()), this, SLOT(coinControlUpdateLabels()));
}
void SendCoinsDialog::setModel(WalletModel *model)