Browse Source

fix bug where default pay from address was wrong

recurring
adityapk00 6 years ago
parent
commit
92ec877c84
  1. 3
      src/mainwindow.h
  2. 4
      src/rpc.cpp
  3. 2
      src/sendtab.cpp

3
src/mainwindow.h

@ -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);

4
src/rpc.cpp

@ -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.

2
src/sendtab.cpp

@ -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);

Loading…
Cancel
Save