Fix issue #9683 "gui, wallet: random abort (segmentation fault) running master/HEAD".
Patch taken from @ryanofsky's comment https://github.com/bitcoin/bitcoin/issues/9683#issuecomment-448035913 and refined according to https://github.com/bitcoin/bitcoin/pull/15203#discussion_r249168229
This commit is contained in:
parent
452acee4da
commit
364cff1cab
1 changed files with 1 additions and 1 deletions
|
@ -229,8 +229,8 @@ void TransactionView::setModel(WalletModel *_model)
|
||||||
transactionView->setAlternatingRowColors(true);
|
transactionView->setAlternatingRowColors(true);
|
||||||
transactionView->setSelectionBehavior(QAbstractItemView::SelectRows);
|
transactionView->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||||
transactionView->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
transactionView->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||||
|
transactionView->horizontalHeader()->setSortIndicator(TransactionTableModel::Date, Qt::DescendingOrder);
|
||||||
transactionView->setSortingEnabled(true);
|
transactionView->setSortingEnabled(true);
|
||||||
transactionView->sortByColumn(TransactionTableModel::Date, Qt::DescendingOrder);
|
|
||||||
transactionView->verticalHeader()->hide();
|
transactionView->verticalHeader()->hide();
|
||||||
|
|
||||||
transactionView->setColumnWidth(TransactionTableModel::Status, STATUS_COLUMN_WIDTH);
|
transactionView->setColumnWidth(TransactionTableModel::Status, STATUS_COLUMN_WIDTH);
|
||||||
|
|
Loading…
Reference in a new issue