Skip to content

Commit

Permalink
UI: metadex cancel dialog - fix lack of update when address changed
Browse files Browse the repository at this point in the history
  • Loading branch information
zathras-crypto committed May 13, 2015
1 parent 040ddb6 commit 916cd06
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/qt/metadexcanceldialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ MetaDExCancelDialog::MetaDExCancelDialog(QWidget *parent) :
connect(ui->radioCancelPrice, SIGNAL(clicked()),this, SLOT(UpdateCancelCombo()));
connect(ui->radioCancelEverything, SIGNAL(clicked()),this, SLOT(UpdateCancelCombo()));
connect(ui->cancelButton, SIGNAL(clicked()),this, SLOT(SendCancelTransaction()));
connect(ui->fromCombo, SIGNAL(activated(int)), this, SLOT(fromAddressComboBoxChanged(int)));


// perform initial from address population
UpdateAddressSelector();
Expand Down Expand Up @@ -129,6 +131,14 @@ void MetaDExCancelDialog::UpdateAddressSelector()
}
}

/**
* Refreshes the cancel combo when the address selector is changed
*/
void MetaDExCancelDialog::fromAddressComboBoxChanged(int)
{
UpdateCancelCombo(); // all that's needed at this stage
}

/**
* Refreshes the cancel combo with the latest data based on the currently selected
* radio button.
Expand Down
2 changes: 2 additions & 0 deletions src/qt/metadexcanceldialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public slots:
void UpdateAddressSelector();
void UpdateCancelCombo();
void RefreshUI();
void fromAddressComboBoxChanged(int);


private:
Ui::MetaDExCancelDialog *ui;
Expand Down

0 comments on commit 916cd06

Please sign in to comment.