Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
9972c00e
Commit
9972c00e
authored
Sep 23, 2021
by
Ahmad Samir
Committed by
Kurt Hindenburg
Sep 27, 2021
Browse files
Only unset the QWidget stylesheet if it was previously set to a custom one
Less potential side-effects.
parent
8489c8e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/widgets/ViewContainer.cpp
View file @
9972c00e
...
...
@@ -201,8 +201,12 @@ void TabbedViewContainer::konsoleConfigChanged()
if
(
KonsoleSettings
::
tabBarUseUserStyleSheet
())
{
setCssFromFile
(
KonsoleSettings
::
tabBarUserStyleSheetFile
());
_stylesheetSet
=
true
;
}
else
{
setStyleSheet
(
QString
());
if
(
_stylesheetSet
)
{
setStyleSheet
(
QString
());
_stylesheetSet
=
false
;
}
}
}
...
...
src/widgets/ViewContainer.h
View file @
9972c00e
...
...
@@ -235,6 +235,8 @@ private:
}
};
bool
_stylesheetSet
=
false
;
QHash
<
const
QWidget
*
,
TabIconState
>
_tabIconState
;
ViewManager
*
_connectedViewManager
;
QMenu
*
_contextPopupMenu
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment