Merge pull request #3355
6c98cca
qt: use deleteLater to remove send entries (Wladimir J. van der Laan)
This commit is contained in:
commit
00cfc9f074
1 changed files with 2 additions and 2 deletions
|
@ -260,7 +260,7 @@ void SendCoinsDialog::clear()
|
|||
// Remove entries until only one left
|
||||
while(ui->entries->count())
|
||||
{
|
||||
delete ui->entries->takeAt(0)->widget();
|
||||
ui->entries->takeAt(0)->widget()->deleteLater();
|
||||
}
|
||||
addEntry();
|
||||
|
||||
|
@ -306,7 +306,7 @@ void SendCoinsDialog::updateTabsAndLabels()
|
|||
|
||||
void SendCoinsDialog::removeEntry(SendCoinsEntry* entry)
|
||||
{
|
||||
delete entry;
|
||||
entry->deleteLater();
|
||||
|
||||
// If the last entry was removed add an empty one
|
||||
if (!ui->entries->count())
|
||||
|
|
Loading…
Reference in a new issue