Browse Source

fix crash: CoinControl "space" bug

Just like baf80c26a2
0.13
fsb4000 10 years ago
parent
commit
0eade74c78
  1. 1
      src/qt/coincontroltreewidget.cpp

1
src/qt/coincontroltreewidget.cpp

@ -17,6 +17,7 @@ void CoinControlTreeWidget::keyPressEvent(QKeyEvent *event) @@ -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

Loading…
Cancel
Save