Merge pull request #5700

0eade74 fix crash: CoinControl "space" bug (fsb4000)
This commit is contained in:
Wladimir J. van der Laan 2015-01-23 16:07:58 +01:00
commit b6acd4563d
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
1 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ void CoinControlTreeWidget::keyPressEvent(QKeyEvent *event)
{
event->ignore();
int COLUMN_CHECKBOX = 0;
if(this->currentItem())
this->currentItem()->setCheckState(COLUMN_CHECKBOX, ((this->currentItem()->checkState(COLUMN_CHECKBOX) == Qt::Checked) ? Qt::Unchecked : Qt::Checked));
}
else if (event->key() == Qt::Key_Escape) // press esc -> close dialog