Merge pull request #2558 from Cacodemon345/patch-98

qt: Fix unresponsive progress bar when creating floppy images
This commit is contained in:
Miran Grča
2022-08-02 18:16:14 +02:00
committed by GitHub

View File

@@ -187,6 +187,7 @@ void NewFloppyDialog::onCreate() {
QProgressDialog progress("Creating floppy image", QString(), 0, 100, this);
connect(this, &NewFloppyDialog::fileProgress, &progress, &QProgressDialog::setValue);
connect(this, &NewFloppyDialog::fileProgress, [] { QApplication::processEvents(); });
switch (mediaType_) {
case MediaType::Floppy:
if (fi.suffix().toLower() == QStringLiteral("86f")) {