[Gui] Always hide progress bar on finished load
The loadFinished signal from QtWebEngine includes a boolean indicating whether the load was "ssuccessful" or not, but no apparent way to determine what error, if any, occurred. Given that we are never displaying any error information to the user, hide the progress bar regardless of the success or failure of the operation.
This commit is contained in:
@@ -693,12 +693,10 @@ void BrowserView::onLoadProgress(int step)
|
||||
|
||||
void BrowserView::onLoadFinished(bool ok)
|
||||
{
|
||||
if (ok) {
|
||||
QProgressBar* bar = SequencerBar::instance()->getProgressBar();
|
||||
bar->setValue(100);
|
||||
bar->hide();
|
||||
getMainWindow()->showMessage(QString());
|
||||
}
|
||||
QProgressBar* bar = SequencerBar::instance()->getProgressBar();
|
||||
bar->setValue(100);
|
||||
bar->hide();
|
||||
getMainWindow()->showMessage(QString());
|
||||
isLoading = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user