From 1033959839277d325350442fb50a739aeb068ea2 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Tue, 2 Aug 2022 16:59:24 +0600 Subject: [PATCH] qt: Fix unresponsive progress bar when creating floppy images --- src/qt/qt_newfloppydialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qt/qt_newfloppydialog.cpp b/src/qt/qt_newfloppydialog.cpp index 576798e54..1581c6e52 100644 --- a/src/qt/qt_newfloppydialog.cpp +++ b/src/qt/qt_newfloppydialog.cpp @@ -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")) {