Skip to content

Commit cf35aff

Browse files
authored
remove risky qApp->processEvents() call (#6161)
1 parent 711eddc commit cf35aff

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/app/qgisapp.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11091,23 +11091,6 @@ void QgisApp::showProgress( int progress, int totalSteps )
1109111091
}
1109211092
mProgressBar->setMaximum( totalSteps );
1109311093
mProgressBar->setValue( progress );
11094-
11095-
if ( mProgressBar->maximum() == 0 )
11096-
{
11097-
// for busy indicator (when minimum equals to maximum) the oxygen Qt style (used in KDE)
11098-
// has some issues and does not start busy indicator animation. This is an ugly fix
11099-
// that forces creation of a temporary progress bar that somehow resumes the animations.
11100-
// Caution: looking at the code below may introduce mild pain in stomach.
11101-
if ( strcmp( QApplication::style()->metaObject()->className(), "Oxygen::Style" ) == 0 )
11102-
{
11103-
QProgressBar pb;
11104-
pb.setAttribute( Qt::WA_DontShowOnScreen ); // no visual annoyance
11105-
pb.setMaximum( 0 );
11106-
pb.show();
11107-
qApp->processEvents();
11108-
}
11109-
}
11110-
1111111094
}
1111211095
}
1111311096

0 commit comments

Comments
 (0)