From 4ce3984a68e55a7dc416fabdbd53c036d333d1ba Mon Sep 17 00:00:00 2001 From: Peter Shugalev Date: Fri, 25 Aug 2023 15:13:45 +0200 Subject: [PATCH] Fixed QT crash on startup --- src/qt/transactionview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index 86ed7cfeae..e5736c0dc6 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -228,8 +228,8 @@ void TransactionView::setModel(WalletModel *_model) transactionView->setAlternatingRowColors(true); transactionView->setSelectionBehavior(QAbstractItemView::SelectRows); transactionView->setSelectionMode(QAbstractItemView::ExtendedSelection); + transactionView->horizontalHeader()->setSortIndicator(TransactionTableModel::Date, Qt::DescendingOrder); transactionView->setSortingEnabled(true); - transactionView->sortByColumn(TransactionTableModel::Date, Qt::DescendingOrder); transactionView->verticalHeader()->hide(); transactionView->setColumnWidth(TransactionTableModel::Status, STATUS_COLUMN_WIDTH);