Merge pull request #2558 from Cacodemon345/patch-98
qt: Fix unresponsive progress bar when creating floppy images
This commit is contained in:
@@ -187,6 +187,7 @@ void NewFloppyDialog::onCreate() {
|
|||||||
|
|
||||||
QProgressDialog progress("Creating floppy image", QString(), 0, 100, this);
|
QProgressDialog progress("Creating floppy image", QString(), 0, 100, this);
|
||||||
connect(this, &NewFloppyDialog::fileProgress, &progress, &QProgressDialog::setValue);
|
connect(this, &NewFloppyDialog::fileProgress, &progress, &QProgressDialog::setValue);
|
||||||
|
connect(this, &NewFloppyDialog::fileProgress, [] { QApplication::processEvents(); });
|
||||||
switch (mediaType_) {
|
switch (mediaType_) {
|
||||||
case MediaType::Floppy:
|
case MediaType::Floppy:
|
||||||
if (fi.suffix().toLower() == QStringLiteral("86f")) {
|
if (fi.suffix().toLower() == QStringLiteral("86f")) {
|
||||||
|
Reference in New Issue
Block a user