Skip to content

Commit 00cfc9f

Browse files
committed
Merge pull request #3355
6c98cca qt: use deleteLater to remove send entries (Wladimir J. van der Laan)
2 parents f15bd3c + 6c98cca commit 00cfc9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qt/sendcoinsdialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void SendCoinsDialog::clear()
260260
// Remove entries until only one left
261261
while(ui->entries->count())
262262
{
263-
delete ui->entries->takeAt(0)->widget();
263+
ui->entries->takeAt(0)->widget()->deleteLater();
264264
}
265265
addEntry();
266266

@@ -306,7 +306,7 @@ void SendCoinsDialog::updateTabsAndLabels()
306306

307307
void SendCoinsDialog::removeEntry(SendCoinsEntry* entry)
308308
{
309-
delete entry;
309+
entry->deleteLater();
310310

311311
// If the last entry was removed add an empty one
312312
if (!ui->entries->count())

0 commit comments

Comments
 (0)