mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-09 00:52:36 +02:00
Prevent double-sends from quick double-button-clicks
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@174 1a98c847-1fd6-4fd8-948a-caf3550aa51b
This commit is contained in:
4
ui.cpp
4
ui.cpp
@@ -1929,6 +1929,9 @@ void CSendDialog::OnButtonPaste(wxCommandEvent& event)
|
|||||||
|
|
||||||
void CSendDialog::OnButtonSend(wxCommandEvent& event)
|
void CSendDialog::OnButtonSend(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
|
static CCriticalSection cs_sendlock;
|
||||||
|
TRY_CRITICAL_BLOCK(cs_sendlock)
|
||||||
|
{
|
||||||
CWalletTx wtx;
|
CWalletTx wtx;
|
||||||
string strAddress = (string)m_textCtrlAddress->GetValue();
|
string strAddress = (string)m_textCtrlAddress->GetValue();
|
||||||
|
|
||||||
@@ -1992,6 +1995,7 @@ void CSendDialog::OnButtonSend(wxCommandEvent& event)
|
|||||||
SetAddressBookName(strAddress, "");
|
SetAddressBookName(strAddress, "");
|
||||||
|
|
||||||
EndModal(true);
|
EndModal(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSendDialog::OnButtonCancel(wxCommandEvent& event)
|
void CSendDialog::OnButtonCancel(wxCommandEvent& event)
|
||||||
|
Reference in New Issue
Block a user