Browse Source

Merge pull request #3382

24646ee [Qt] fix possibilty to delete last sendcoins entry (Philip Kaufmann)
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
5e47c2b70a
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 8
      src/qt/sendcoinsdialog.cpp

8
src/qt/sendcoinsdialog.cpp

@ -306,12 +306,14 @@ void SendCoinsDialog::updateTabsAndLabels() @@ -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();
}

Loading…
Cancel
Save