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

This commit is contained in:
Gavin Andresen 2011-09-01 15:44:39 -04:00
parent 783c636c73
commit 36d9b2311d

View file

@ -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)