mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#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:
parent
b3e0279f3a
commit
549118b6ad
@ -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
|
||||
{
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user