Skip to content

Commit

Permalink
Merge pull request bitcoin#3382
Browse files Browse the repository at this point in the history
24646ee [Qt] fix possibilty to delete last sendcoins entry (Philip Kaufmann)
  • Loading branch information
laanwj committed Dec 11, 2013
2 parents 6912703 + 24646ee commit 5e47c2b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/qt/sendcoinsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,14 @@ void SendCoinsDialog::updateTabsAndLabels()

void SendCoinsDialog::removeEntry(SendCoinsEntry* entry)
{
entry->deleteLater();
entry->hide();

// If the last entry was removed add an empty one
if (!ui->entries->count())
// If the last entry is about to be removed add an empty one
if (ui->entries->count() == 1)
addEntry();

entry->deleteLater();

updateTabsAndLabels();
}

Expand Down Expand Up @@ -543,7 +545,7 @@ void SendCoinsDialog::coinControlChangeChecked(int state)
}

// Coin Control: custom change address changed
void SendCoinsDialog::coinControlChangeEdited(const QString & text)
void SendCoinsDialog::coinControlChangeEdited(const QString& text)
{
if (model)
{
Expand Down

0 comments on commit 5e47c2b

Please sign in to comment.