mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Avoid initializing progress bar if called from unit test framework
p4#: 19042
This commit is contained in:
parent
f144134701
commit
03ede069c1
@ -263,6 +263,8 @@ static bool isWrongThread()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void ProgressInfoStatic::start(int maxProgressValue, const QString& title)
|
void ProgressInfoStatic::start(int maxProgressValue, const QString& title)
|
||||||
{
|
{
|
||||||
|
if (!qApp) return;
|
||||||
|
|
||||||
if (isWrongThread()) return;
|
if (isWrongThread()) return;
|
||||||
|
|
||||||
if (!maxProgressStack().size())
|
if (!maxProgressStack().size())
|
||||||
|
Loading…
Reference in New Issue
Block a user