aboutsummaryrefslogtreecommitdiff
path: root/src/browsertab.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2020-12-31 16:48:22 +1100
committerFelix Queißner <felix@ib-queissner.de>2020-12-31 10:57:55 +0100
commit0ab1c12b436f4363d03ace1420b91cba1b9b0d50 (patch)
treece6bcd003eb3be699340b831813b3e92c33526df /src/browsertab.cpp
parent8f1de0d980deeeb6e697548ff0ae62d1eee662b8 (diff)
downloadkristall-0ab1c12b436f4363d03ace1420b91cba1b9b0d50.tar.gz
Prevents URL bar styles appearing strange in settings dialog after changing theme.
do this by removing style while settings window is open
Diffstat (limited to 'src/browsertab.cpp')
-rw-r--r--src/browsertab.cpp3
1 files changed, 2 insertions, 1 deletions
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,