diff --git a/cafUserInterface/cafProgressInfo.cpp b/cafUserInterface/cafProgressInfo.cpp index f5e966aa0b..19decafe5b 100644 --- a/cafUserInterface/cafProgressInfo.cpp +++ b/cafUserInterface/cafProgressInfo.cpp @@ -263,6 +263,8 @@ static bool isWrongThread() //-------------------------------------------------------------------------------------------------- void ProgressInfoStatic::start(int maxProgressValue, const QString& title) { + if (!qApp) return; + if (isWrongThread()) return; if (!maxProgressStack().size())