fix bug where default pay from address was wrong
This commit is contained in:
@@ -39,6 +39,8 @@ public:
|
|||||||
|
|
||||||
void updateLabelsAutoComplete();
|
void updateLabelsAutoComplete();
|
||||||
|
|
||||||
|
void setDefaultPayFrom();
|
||||||
|
|
||||||
Ui::MainWindow* ui;
|
Ui::MainWindow* ui;
|
||||||
|
|
||||||
QLabel* statusLabel;
|
QLabel* statusLabel;
|
||||||
@@ -61,7 +63,6 @@ private:
|
|||||||
void setupStatusBar();
|
void setupStatusBar();
|
||||||
|
|
||||||
void removeExtraAddresses();
|
void removeExtraAddresses();
|
||||||
void setDefaultPayFrom();
|
|
||||||
|
|
||||||
Tx createTxFromSendPage();
|
Tx createTxFromSendPage();
|
||||||
bool confirmTx(Tx tx);
|
bool confirmTx(Tx tx);
|
||||||
|
|||||||
@@ -646,6 +646,10 @@ void RPC::updateUI(bool anyUnconfirmed) {
|
|||||||
|
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lastFromAddr.isEmpty()) {
|
||||||
|
main->setDefaultPayFrom();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Function to process reply of the listunspent and z_listunspent API calls, used below.
|
// Function to process reply of the listunspent and z_listunspent API calls, used below.
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ void MainWindow::setupSendTab() {
|
|||||||
amtValidator->setNotation(QDoubleValidator::StandardNotation);
|
amtValidator->setNotation(QDoubleValidator::StandardNotation);
|
||||||
ui->Amount1->setValidator(amtValidator);
|
ui->Amount1->setValidator(amtValidator);
|
||||||
|
|
||||||
setDefaultPayFrom();
|
|
||||||
|
|
||||||
// Send button
|
// Send button
|
||||||
QObject::connect(ui->sendTransactionButton, &QPushButton::clicked, this, &MainWindow::sendButton);
|
QObject::connect(ui->sendTransactionButton, &QPushButton::clicked, this, &MainWindow::sendButton);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user