diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-12-04 09:42:00 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-12-04 09:42:09 +0100 |
| commit | 00cfc9f0749daed5137bea78a4234c3d074e8889 (patch) | |
| tree | e7e66512e89afb5fc6c58f5db42e85ea9c5f4d59 | |
| parent | Merge pull request #3285 (diff) | |
| parent | qt: use deleteLater to remove send entries (diff) | |
| download | discoin-00cfc9f0749daed5137bea78a4234c3d074e8889.tar.xz discoin-00cfc9f0749daed5137bea78a4234c3d074e8889.zip | |
Merge pull request #3355
6c98cca qt: use deleteLater to remove send entries (Wladimir J. van der Laan)
| -rw-r--r-- | src/qt/sendcoinsdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index 73cfa27c8..0a4e80811 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -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()) |