fix bug where default pay from address was wrong
This commit is contained in:
@@ -39,6 +39,8 @@ public:
|
||||
|
||||
void updateLabelsAutoComplete();
|
||||
|
||||
void setDefaultPayFrom();
|
||||
|
||||
Ui::MainWindow* ui;
|
||||
|
||||
QLabel* statusLabel;
|
||||
@@ -61,7 +63,6 @@ private:
|
||||
void setupStatusBar();
|
||||
|
||||
void removeExtraAddresses();
|
||||
void setDefaultPayFrom();
|
||||
|
||||
Tx createTxFromSendPage();
|
||||
bool confirmTx(Tx tx);
|
||||
|
||||
@@ -646,6 +646,10 @@ void RPC::updateUI(bool anyUnconfirmed) {
|
||||
|
||||
++i;
|
||||
}
|
||||
|
||||
if (lastFromAddr.isEmpty()) {
|
||||
main->setDefaultPayFrom();
|
||||
}
|
||||
};
|
||||
|
||||
// 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);
|
||||
ui->Amount1->setValidator(amtValidator);
|
||||
|
||||
setDefaultPayFrom();
|
||||
|
||||
// Send button
|
||||
QObject::connect(ui->sendTransactionButton, &QPushButton::clicked, this, &MainWindow::sendButton);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user