Commit 9972c00e authored by Ahmad Samir's avatar Ahmad Samir Committed by Kurt Hindenburg
Browse files

Only unset the QWidget stylesheet if it was previously set to a custom one

Less potential side-effects.
parent 8489c8e1
......@@ -201,8 +201,12 @@ void TabbedViewContainer::konsoleConfigChanged()
if (KonsoleSettings::tabBarUseUserStyleSheet()) {
setCssFromFile(KonsoleSettings::tabBarUserStyleSheetFile());
_stylesheetSet = true;
} else {
setStyleSheet(QString());
if (_stylesheetSet) {
setStyleSheet(QString());
_stylesheetSet = false;
}
}
}
......
......@@ -235,6 +235,8 @@ private:
}
};
bool _stylesheetSet = false;
QHash<const QWidget *, TabIconState> _tabIconState;
ViewManager *_connectedViewManager;
QMenu *_contextPopupMenu;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment