Merge pull request #3382
24646ee
[Qt] fix possibilty to delete last sendcoins entry (Philip Kaufmann)
This commit is contained in:
commit
5e47c2b70a
1 changed files with 6 additions and 4 deletions
|
@ -306,12 +306,14 @@ void SendCoinsDialog::updateTabsAndLabels()
|
||||||
|
|
||||||
void SendCoinsDialog::removeEntry(SendCoinsEntry* entry)
|
void SendCoinsDialog::removeEntry(SendCoinsEntry* entry)
|
||||||
{
|
{
|
||||||
entry->deleteLater();
|
entry->hide();
|
||||||
|
|
||||||
// If the last entry was removed add an empty one
|
// If the last entry is about to be removed add an empty one
|
||||||
if (!ui->entries->count())
|
if (ui->entries->count() == 1)
|
||||||
addEntry();
|
addEntry();
|
||||||
|
|
||||||
|
entry->deleteLater();
|
||||||
|
|
||||||
updateTabsAndLabels();
|
updateTabsAndLabels();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue