From 0ab1c12b436f4363d03ace1420b91cba1b9b0d50 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Thu, 31 Dec 2020 16:48:22 +1100 Subject: Prevents URL bar styles appearing strange in settings dialog after changing theme. do this by removing style while settings window is open --- src/browsertab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/browsertab.cpp') diff --git a/src/browsertab.cpp b/src/browsertab.cpp index 1446f20..549f41a 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -1138,7 +1138,8 @@ void BrowserTab::updateUrlBarStyle() // or has an invalid URL. if (this->ui->url_bar->hasFocus() || !url.isValid() || - this->is_internal_location) + this->is_internal_location || + mainWindow->settings_visible) { // Disable styling setLineEditTextFormat(this->ui->url_bar, -- cgit v1.2.3