From 4de19361bfeeb0e310ec152848de61df7ceee220 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Fri, 11 Feb 2022 15:40:07 +0600 Subject: [PATCH] qt: Properly set saved window size --- src/qt/qt_mainwindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index 3c6496596..1b4dfe08d 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -468,10 +468,9 @@ void MainWindow::showEvent(QShowEvent *event) { scrnsz_y = fixed_size_y; } else if (window_remember && vid_resize == 1) { - resize(window_w, window_h - + menuBar()->height() - + (hide_status_bar ? 0 : statusBar()->height()) - + (hide_tool_bar ? 0 : ui->toolBar->height()) + 1); + ui->stackedWidget->setFixedSize(window_w, window_h); + adjustSize(); + ui->stackedWidget->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); scrnsz_x = window_w; scrnsz_y = window_h; }