let pass events of a progress dialog in event filter of WaitCursor

This commit is contained in:
wmayer
2018-08-14 23:49:00 +02:00
parent 56e6d58291
commit 2b02b07538

View File

@@ -27,6 +27,7 @@
# include <QApplication>
# include <QDateTime>
# include <QMessageBox>
# include <QProgressDialog>
# ifdef FC_OS_WIN32
# include <windows.h>
# endif
@@ -115,6 +116,9 @@ bool WaitCursorP::isModalDialog(QObject* o) const
QMessageBox* dlg = qobject_cast<QMessageBox*>(parent);
if (dlg && dlg->isModal())
return true;
QProgressDialog* pd = qobject_cast<QProgressDialog*>(parent);
if (pd)
return true;
parent = parent->parentWidget();
}