Skip to content

Commit

Permalink
let pass events of a progress dialog in event filter of WaitCursor
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Aug 14, 2018
1 parent 56e6d58 commit 2b02b07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Gui/WaitCursor.cpp
Expand Up @@ -27,6 +27,7 @@
# include <QApplication>
# include <QDateTime>
# include <QMessageBox>
# include <QProgressDialog>
# ifdef FC_OS_WIN32
# include <windows.h>
# endif
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 2b02b07

Please sign in to comment.