Commit 793657eb authored by Robert Knight's avatar Robert Knight
Browse files

Fix tab title colors not being updated when color scheme changes.

Pass an invalid QColor() rather than the palette's foreground color
to QTabBar::setTabTextColor() to change a tab to the foreground color,
otherwise the tab continues to use the previous palette's foreground
color when a palette change occurs.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=796022
parent ea99cdde
......@@ -668,9 +668,8 @@ void TabbedViewContainerV2::setTabActivity(int index , bool activity)
const QColor normalColor = palette.text().color();
const QColor activityColor = KColorUtils::mix(normalColor,colorSchemeActive);
QColor color = activity ? activityColor : normalColor;
QColor color = activity ? activityColor : QColor();
if ( color != _tabBar->tabTextColor(index) )
_tabBar->setTabTextColor(index,color);
......
Markdown is supported
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