From 95e0d1a560aae94355da22e9c196da78cf611beb Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Thu, 4 Apr 2024 19:37:52 +0200 Subject: [PATCH] Fix changelog size hack --- rpcs3/rpcs3qt/update_manager.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rpcs3/rpcs3qt/update_manager.cpp b/rpcs3/rpcs3qt/update_manager.cpp index 240f85a160..080f031f69 100644 --- a/rpcs3/rpcs3qt/update_manager.cpp +++ b/rpcs3/rpcs3qt/update_manager.cpp @@ -336,10 +336,15 @@ void update_manager::update(bool auto_accept) // Smartass hack to make the unresizeable message box wide enough for the changelog const int changelog_width = QLabel(changelog_content).sizeHint().width(); - while (QLabel(m_update_message).sizeHint().width() < changelog_width) + if (QLabel(m_update_message).sizeHint().width() < changelog_width) { - m_update_message += " "; + m_update_message += "  "; + while (QLabel(m_update_message).sizeHint().width() < changelog_width) + { + m_update_message += " "; + } } + mb.setText(m_update_message); }