Qt: replace refresh progress slot with timer

For some reason setValue crashes in the progressValueChanged slot for no apparent reason
This commit is contained in:
Megamouse 2024-03-12 22:45:40 +01:00
parent 397c2698ae
commit 0f29a5be9f
3 changed files with 44 additions and 34 deletions

View file

@ -37,7 +37,7 @@ void progress_dialog::SetRange(int min, int max)
{
m_progress_indicator->set_range(min, max);
QProgressDialog::setRange(min, max);
setRange(min, max);
}
void progress_dialog::SetValue(int progress)
@ -46,7 +46,7 @@ void progress_dialog::SetValue(int progress)
m_progress_indicator->set_value(value);
QProgressDialog::setValue(value);
setValue(value);
}
void progress_dialog::SetDeleteOnClose()