Skip to content

Commit

Permalink
Fixing crash on windows (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed May 17, 2023
1 parent accc5f5 commit 39c7bb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qt/transactionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 39c7bb2

Please sign in to comment.