File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -306,12 +306,14 @@ void SendCoinsDialog::updateTabsAndLabels()
306
306
307
307
void SendCoinsDialog::removeEntry (SendCoinsEntry* entry)
308
308
{
309
- entry->deleteLater ();
309
+ entry->hide ();
310
310
311
- // If the last entry was removed add an empty one
312
- if (! ui->entries ->count ())
311
+ // If the last entry is about to be removed add an empty one
312
+ if (ui->entries ->count () == 1 )
313
313
addEntry ();
314
314
315
+ entry->deleteLater ();
316
+
315
317
updateTabsAndLabels ();
316
318
}
317
319
@@ -543,7 +545,7 @@ void SendCoinsDialog::coinControlChangeChecked(int state)
543
545
}
544
546
545
547
// Coin Control: custom change address changed
546
- void SendCoinsDialog::coinControlChangeEdited (const QString & text)
548
+ void SendCoinsDialog::coinControlChangeEdited (const QString& text)
547
549
{
548
550
if (model)
549
551
{
You can’t perform that action at this time.
0 commit comments