]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kcategorizedview.cpp
Fixed wrong usage of QStyleOptionViewItem: caching of the file item in the constructo...
[dolphin.git] / 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())
     {