From 6fe32887b2d185c3fa011ae030a446e9abdea17e Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 25 Oct 2019 16:04:29 +0200 Subject: [PATCH] Qt: disable progress_dialog resize --- rpcs3/rpcs3qt/progress_dialog.cpp | 2 +- rpcs3/rpcs3qt/update_manager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/rpcs3qt/progress_dialog.cpp b/rpcs3/rpcs3qt/progress_dialog.cpp index d88a9fc239..612ac2fb04 100644 --- a/rpcs3/rpcs3qt/progress_dialog.cpp +++ b/rpcs3/rpcs3qt/progress_dialog.cpp @@ -6,7 +6,7 @@ progress_dialog::progress_dialog(const QString &windowTitle, const QString &labe : QProgressDialog(labelText, cancelButtonText, minimum, maximum, parent, flags) { setWindowTitle(windowTitle); - setFixedWidth(QLabel("This is the very length of the progressdialog due to hidpi reasons.").sizeHint().width()); + setFixedSize(QLabel("This is the very length of the progressdialog due to hidpi reasons.").sizeHint().width(), sizeHint().height()); setValue(0); setWindowModality(Qt::WindowModal); connect(this, &QProgressDialog::canceled, this, &QProgressDialog::deleteLater); diff --git a/rpcs3/rpcs3qt/update_manager.cpp b/rpcs3/rpcs3qt/update_manager.cpp index c28617701f..76a1f21f1c 100644 --- a/rpcs3/rpcs3qt/update_manager.cpp +++ b/rpcs3/rpcs3qt/update_manager.cpp @@ -262,7 +262,7 @@ bool update_manager::handle_json(const QByteArray& data, bool automatic) return true; } -bool update_manager::handle_rpcs3(const QByteArray& rpcs3_data, bool automatic) +bool update_manager::handle_rpcs3(const QByteArray& rpcs3_data, bool /*automatic*/) { if (m_expected_size != rpcs3_data.size()) {