Browse Source

Merge pull request #3355

6c98cca qt: use deleteLater to remove send entries (Wladimir J. van der Laan)
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
00cfc9f074
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 4
      src/qt/sendcoinsdialog.cpp

4
src/qt/sendcoinsdialog.cpp

@ -260,7 +260,7 @@ void SendCoinsDialog::clear()
// Remove entries until only one left // Remove entries until only one left
while(ui->entries->count()) while(ui->entries->count())
{ {
delete ui->entries->takeAt(0)->widget(); ui->entries->takeAt(0)->widget()->deleteLater();
} }
addEntry(); addEntry();
@ -306,7 +306,7 @@ void SendCoinsDialog::updateTabsAndLabels()
void SendCoinsDialog::removeEntry(SendCoinsEntry* entry) void SendCoinsDialog::removeEntry(SendCoinsEntry* entry)
{ {
delete entry; entry->deleteLater();
// If the last entry was removed add an empty one // If the last entry was removed add an empty one
if (!ui->entries->count()) if (!ui->entries->count())

Loading…
Cancel
Save