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:
parent
c891967b6f
commit
3cac997e19
1 changed files with 60 additions and 56 deletions
4
ui.cpp
4
ui.cpp
|
@ -1928,6 +1928,9 @@ void CSendDialog::OnButtonPaste(wxCommandEvent& event)
|
|||
}
|
||||
|
||||
void CSendDialog::OnButtonSend(wxCommandEvent& event)
|
||||
{
|
||||
static CCriticalSection cs_sendlock;
|
||||
TRY_CRITICAL_BLOCK(cs_sendlock)
|
||||
{
|
||||
CWalletTx wtx;
|
||||
string strAddress = (string)m_textCtrlAddress->GetValue();
|
||||
|
@ -1993,6 +1996,7 @@ void CSendDialog::OnButtonSend(wxCommandEvent& event)
|
|||
|
||||
EndModal(true);
|
||||
}
|
||||
}
|
||||
|
||||
void CSendDialog::OnButtonCancel(wxCommandEvent& event)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue