Skip to content

Commit

Permalink
Make PS Buttons not react to spacebar (dashpay#2154)
Browse files Browse the repository at this point in the history
* Make the togglePrivateSend button not react to the spacebar or enter. dashpay#1766

* redo comment

* change `privateSendAuto` focus policy to remain consistent
  • Loading branch information
PastaPastaPasta authored and UdjinM6 committed Jul 7, 2018
1 parent f833e2e commit c4698d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/qt/overviewpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,12 @@ void OverviewPage::setWalletModel(WalletModel *model)
connect(ui->privateSendReset, SIGNAL(clicked()), this, SLOT(privateSendReset()));
connect(ui->privateSendInfo, SIGNAL(clicked()), this, SLOT(privateSendInfo()));
connect(ui->togglePrivateSend, SIGNAL(clicked()), this, SLOT(togglePrivateSend()));

// privatesend buttons will not react to spacebar must be clicked on
ui->privateSendAuto->setFocusPolicy(Qt::NoFocus);
ui->privateSendReset->setFocusPolicy(Qt::NoFocus);
ui->privateSendInfo->setFocusPolicy(Qt::NoFocus);
ui->togglePrivateSend->setFocusPolicy(Qt::NoFocus);
}
}

Expand Down

0 comments on commit c4698d5

Please sign in to comment.