From 27fd5fb5adee9bd9af2c75abe7fb165ed3e7e9fb Mon Sep 17 00:00:00 2001 From: levonpetrosyan93 <45027856+levonpetrosyan93@users.noreply.github.com> Date: Sun, 10 Apr 2022 20:03:19 +0400 Subject: [PATCH] Fixing crash on windows (#1159) --- src/qt/transactionview.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index d18ea2c180..bd38accdbd 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -684,6 +684,9 @@ void TransactionView::focusTransaction(const QModelIndex &idx) // sizes as the tables width is proportional to the dialogs width. void TransactionView::resizeEvent(QResizeEvent* event) { + if(!transactionView || !transactionView->selectionModel()) + return; + QWidget::resizeEvent(event); disconnect(transactionView->horizontalHeader(), SIGNAL(sectionResized(int,int,int)), this, SLOT(updateHeaderSizes(int,int,int))); columnResizingFixer->stretchColumnWidth(TransactionTableModel::ToAddress);