]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix palette problem as workaround. This is needed if the categorization is enabled
authorRafael Fernández López <ereslibre@kde.org>
Thu, 6 Dec 2007 16:51:43 +0000 (16:51 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Thu, 6 Dec 2007 16:51:43 +0000 (16:51 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=745630

src/kcategorizedview.cpp

index c062b12b3212cd3e78de39c7d134f2209304ba2e..8d1f93d5b2ae48a3f4aeb07328c1ec12fb2ce3a8 100644 (file)
@@ -695,6 +695,9 @@ void KCategorizedView::paintEvent(QPaintEvent *event)
     }
 
     QStyleOptionViewItemV3 option = viewOptions();
+    option.palette = palette(); // viewOptions() doesn't seem to return the correct palette
+                                // if the app was already running and the color scheme was changed
+                                // (ereslibre)
     option.widget = this;
     if (wordWrap())
     {