X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fui.cpp;h=6b7ecdbc8d4378a1ed724e012abd4820bded7852;hb=ee1d6e4ed0a931defc6f6273cc67a0a3e980940f;hp=5ca666192a5a6bfe9566990210b372034d4a86ac;hpb=471426fb3b2c2fa37640c03819c4f7be69ba8301;p=novacoin.git diff --git a/src/ui.cpp b/src/ui.cpp index 5ca6661..6b7ecdb 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); } } @@ -1391,7 +1390,9 @@ void CMainFrame::OnButtonNew(wxCommandEvent& event) return; // Generate new key - strAddress = CBitcoinAddress(pwalletMain->GetOrReuseKeyFromPool()).ToString(); + std::vector newKey; + pwalletMain->GetKeyFromPool(newKey, true); + strAddress = CBitcoinAddress(newKey).ToString(); if (fWasLocked) pwalletMain->Lock(); @@ -1804,7 +1805,11 @@ void SetStartOnSystemStartup(bool fAutoStart) { if (!fAutoStart) { +#if defined(BOOST_FILESYSTEM_VERSION) && BOOST_FILESYSTEM_VERSION >= 3 + unlink(GetAutostartFilePath().string().c_str()); +#else unlink(GetAutostartFilePath().native_file_string().c_str()); +#endif } else { @@ -2171,7 +2176,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) @@ -2826,7 +2834,9 @@ void CAddressBookDialog::OnButtonNew(wxCommandEvent& event) return; // Generate new key - strAddress = CBitcoinAddress(pwalletMain->GetOrReuseKeyFromPool()).ToString(); + std::vector newKey; + pwalletMain->GetKeyFromPool(newKey, true); + strAddress = CBitcoinAddress(newKey).ToString(); if (fWasLocked) pwalletMain->Lock();