Permalink
Browse files

More lock updates

  • Loading branch information...
Tranz5 committed Aug 16, 2014
1 parent b00275c commit 846c5a6e949d5c85c56859e9dfb7952f2bf2c499
Showing with 8 additions and 6 deletions.
  1. +8 −6 src/qt/bitcoingui.cpp
@@ -579,6 +579,10 @@ void BitcoinGUI::aboutClicked()
void BitcoinGUI::blocksIconClicked()
{
TRY_LOCK(cs_main, lockMain);
if(!lockMain)
return;
int unit = clientModel->getOptionsModel()->getDisplayUnit();
message(tr("Extended Block Chain Information"),
@@ -656,20 +660,20 @@ void BitcoinGUI::connectionIconClicked()
CClientUIInterface::MODAL,
tr("%1")
.arg(strAllPeer));
}
void BitcoinGUI::stakingIconClicked()
{
TRY_LOCK(cs_main, lockMain);
if(!lockMain)
return;
uint64 nMinWeight = 0, nMaxWeight = 0;
walletStack->getStakeWeight(nMinWeight,nMaxWeight,nWeight);
int unit = clientModel->getOptionsModel()->getDisplayUnit();
message(tr("Extended Staking Information"),
tr("Client Version: %1\n"
"Protocol Version: %2\n\n"
@@ -704,8 +708,6 @@ void BitcoinGUI::stakingIconClicked()
.arg(walletStack->getTotStakeWeight())
.arg(BitcoinUnits::formatWithUnit(unit, clientModel->getMoneySupply(), false))
,CClientUIInterface::MODAL);
}
void BitcoinGUI::gotoOverviewPage()

0 comments on commit 846c5a6

Please sign in to comment.