Browse Source

Fixed regression I introduced: wallets with lots of transactions were unusable in GUI.

miguelfreitas
Gavin Andresen 13 years ago
parent
commit
36d9b2311d
  1. 4
      src/ui.cpp

4
src/ui.cpp

@ -1032,7 +1032,6 @@ void MainFrameRepaint()
printf("MainFrameRepaint\n"); printf("MainFrameRepaint\n");
wxPaintEvent event; wxPaintEvent event;
pframeMain->fRefresh = true; pframeMain->fRefresh = true;
pframeMain->fRefreshListCtrl = true;
pframeMain->GetEventHandler()->AddPendingEvent(event); pframeMain->GetEventHandler()->AddPendingEvent(event);
} }
} }
@ -2173,7 +2172,10 @@ void CSendDialog::OnButtonSend(wxCommandEvent& event)
strError = pwalletMain->SendMoney(scriptPubKey, nValue, wtx, true); strError = pwalletMain->SendMoney(scriptPubKey, nValue, wtx, true);
} }
if (strError == "") if (strError == "")
{
pframeMain->RefreshListCtrl();
wxMessageBox(_("Payment sent "), _("Sending...")); wxMessageBox(_("Payment sent "), _("Sending..."));
}
else if (strError == "ABORTED") else if (strError == "ABORTED")
{ {
if (fWasLocked) if (fWasLocked)

Loading…
Cancel
Save