};
// Update the status of the DOM storage check box when either JavaScript or local storage are changed.
- connect(javaScriptCheckBoxPointer, &QCheckBox::stateChanged, this, updateCheckBoxes);
- connect(localStorageCheckBoxPointer, &QCheckBox::stateChanged, this, updateCheckBoxes);
+ connect(javaScriptCheckBoxPointer, &QCheckBox::checkStateChanged, this, updateCheckBoxes);
+ connect(localStorageCheckBoxPointer, &QCheckBox::checkStateChanged, this, updateCheckBoxes);
// Populate the combo box labels.
updateUserAgentLabel(userAgentComboBoxPointer->currentText());
Q_EMIT updateUserAgentActions(currentWebEngineProfilePointer->httpUserAgent(), true);
Q_EMIT updateZoomActions(currentPrivacyWebEngineViewPointer->zoomFactor());
- // Update the URL.
- Q_EMIT updateWindowTitle(currentPrivacyWebEngineViewPointer->title());
- Q_EMIT updateDomainSettingsIndicator(currentPrivacyWebEngineViewPointer->domainSettingsName != QLatin1String(""));
- Q_EMIT updateUrlLineEdit(QUrl(currentPrivacyWebEngineViewPointer->currentUrlText));
-
// Update the find text.
Q_EMIT updateFindText(currentPrivacyWebEngineViewPointer->findString, currentPrivacyWebEngineViewPointer->findCaseSensitive);
Q_EMIT updateFindTextResults(currentPrivacyWebEngineViewPointer->findTextResult);
Q_EMIT showProgressBar(currentPrivacyWebEngineViewPointer->loadProgressInt);
else
Q_EMIT hideProgressBar();
+
+ // Update the URL.
+ Q_EMIT updateWindowTitle(currentPrivacyWebEngineViewPointer->title());
+ Q_EMIT updateDomainSettingsIndicator(currentPrivacyWebEngineViewPointer->domainSettingsName != QLatin1String(""));
+ Q_EMIT updateUrlLineEdit(QUrl(currentPrivacyWebEngineViewPointer->currentUrlText));
}
void TabWidget::useNativeKdeDownloader(QUrl &downloadUrl, QString &suggestedFileName)
// Update the bookmarked action.
updateBookmarkedAction();
- // Set the focus if the new URL is blank.
- if (newUrlString == QStringLiteral(""))
+ // Set the focus if the new URL is blank and a website is not currently loading. <https://redmine.stoutner.com/issues/1281>
+ if (newUrlString == QStringLiteral("") && progressBarPointer->isHidden())
urlLineEditPointer->setFocus();
}