From 36d9b2311dcb7401ea0d3deda636bc50f135c522 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Thu, 1 Sep 2011 15:44:39 -0400 Subject: [PATCH] Fixed regression I introduced: wallets with lots of transactions were unusable in GUI. --- src/ui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui.cpp b/src/ui.cpp index c820cf7df..198a27209 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -1032,7 +1032,6 @@ void MainFrameRepaint() printf("MainFrameRepaint\n"); wxPaintEvent event; pframeMain->fRefresh = true; - pframeMain->fRefreshListCtrl = true; pframeMain->GetEventHandler()->AddPendingEvent(event); } } @@ -2173,7 +2172,10 @@ void CSendDialog::OnButtonSend(wxCommandEvent& event) strError = pwalletMain->SendMoney(scriptPubKey, nValue, wtx, true); } if (strError == "") + { + pframeMain->RefreshListCtrl(); wxMessageBox(_("Payment sent "), _("Sending...")); + } else if (strError == "ABORTED") { if (fWasLocked)