From 777423c735c898bc0134b7fb01450799251eb231 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 14 Aug 2018 23:49:00 +0200 Subject: [PATCH] let pass events of a progress dialog in event filter of WaitCursor --- src/Gui/WaitCursor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/WaitCursor.cpp b/src/Gui/WaitCursor.cpp index bb47a538b6..43a3cc187e 100644 --- a/src/Gui/WaitCursor.cpp +++ b/src/Gui/WaitCursor.cpp @@ -27,6 +27,7 @@ # include # include # include +# include # ifdef FC_OS_WIN32 # include # endif @@ -115,6 +116,9 @@ bool WaitCursorP::isModalDialog(QObject* o) const QMessageBox* dlg = qobject_cast(parent); if (dlg && dlg->isModal()) return true; + QProgressDialog* pd = qobject_cast(parent); + if (pd) + return true; parent = parent->parentWidget(); }