From be6b4edb0c83551e12305603bc90e5bee33a134a Mon Sep 17 00:00:00 2001 From: aldelaro5 Date: Fri, 11 May 2018 07:23:37 -0400 Subject: [PATCH] Qt/debugger: only resize the columns of the code view once per update Putting the columns to resizeToContents causes way too much resizes per updates which can cause severe lags and even crashes. This only does one resize at the end of the columns. --- Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp index 10ac62d7a6..e531fc66c8 100644 --- a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp @@ -44,8 +44,7 @@ CodeViewWidget::CodeViewWidget() for (int i = 0; i < columnCount(); i++) { - horizontalHeader()->setSectionResizeMode(i, i == 0 ? QHeaderView::Fixed : - QHeaderView::ResizeToContents); + horizontalHeader()->setSectionResizeMode(i, QHeaderView::Fixed); } verticalHeader()->hide(); @@ -174,6 +173,7 @@ void CodeViewWidget::Update() } } + resizeColumnsToContents(); setColumnWidth(0, 24 + 5); g_symbolDB.FillInCallers();