mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
Fix changelog size hack
This commit is contained in:
parent
8effbf7e4d
commit
95e0d1a560
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user