Avoid progress window staying behind on Linux when loading summary data (#9774)

Adjust progress info usage in summary file loading
This commit is contained in:
jonjenssen
2023-02-01 08:46:22 +01:00
committed by GitHub
parent 82b538719e
commit 33e908dd94
2 changed files with 40 additions and 34 deletions

View File

@@ -652,6 +652,8 @@ void ProgressInfoStatic::finished()
dialog->setLabelText( currentComposedLabel() );
}
QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents );
// If we are finishing the last level, clean up
if ( maxProgressStack_v.empty() )
{
@@ -662,12 +664,6 @@ void ProgressInfoStatic::finished()
s_running = false;
}
}
else
{
// Make sure the Gui is repainted
QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents );
// if (progressDialog()) progressDialog()->repaint();
}
}
//--------------------------------------------------------------------------------------------------