DolphinQt: Attempt to fix ParallelProgressDialog constantly reopening
I believe the value returned by value() resets when we call setValue() with the maximum (due to auto-reset). I have been unable to test this because I can't reproduce the issue, which is described at https://bugs.dolphin-emu.org/issues/12158#note-9.
This commit is contained in:
parent
5281efe268
commit
9c7704c0ac
|
@ -71,8 +71,12 @@ private slots:
|
|||
|
||||
m_is_setting_value = true;
|
||||
|
||||
while (m_last_received_progress != m_dialog.value())
|
||||
int last_set_progress;
|
||||
do
|
||||
{
|
||||
last_set_progress = m_last_received_progress;
|
||||
m_dialog.setValue(m_last_received_progress);
|
||||
} while (m_last_received_progress != last_set_progress);
|
||||
|
||||
m_is_setting_value = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue