#7974 Progress Bar : Always delay display and increase threshold duration

Some users experience crash/hang situations related to display of Progress Bar dialog. This is related to implicit repaint of windows due to display or hide of a progress dialog.

To reduce the probability for error situations the following is improved:
- Increase the delay before the dialog is displayed
- Do not show the progress dialog immediately, wait until the delay duration is reached
This commit is contained in:
Magne Sjaastad 2021-11-01 13:01:14 +01:00
parent b3e0279f3a
commit 549118b6ad
2 changed files with 2 additions and 2 deletions

View File

@ -485,7 +485,7 @@ void ProgressInfoStatic::start( size_t maxProgressValue, const QString& title, b
dialog->setCancelButton( nullptr );
if ( delayShowingProgress )
{
dialog->setMinimumDuration( 1000 );
dialog->setMinimumDuration( 2000 );
}
else
{

View File

@ -57,7 +57,7 @@ private:
class ProgressInfo
{
public:
ProgressInfo( size_t maxProgressValue, const QString& title, bool delayShowingProgress = false );
ProgressInfo( size_t maxProgressValue, const QString& title, bool delayShowingProgress = true );
~ProgressInfo();
void setProgressDescription( const QString& description );