From: Rafael Fernández López Date: Thu, 6 Dec 2007 16:51:43 +0000 (+0000) Subject: Fix palette problem as workaround. This is needed if the categorization is enabled X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/848b3eb6219706b7e83ad1567087c40144b92827 Fix palette problem as workaround. This is needed if the categorization is enabled svn path=/trunk/KDE/kdebase/apps/; revision=745630 --- diff --git a/src/kcategorizedview.cpp b/src/kcategorizedview.cpp index c062b12b3..8d1f93d5b 100644 --- a/src/kcategorizedview.cpp +++ b/src/kcategorizedview.cpp @@ -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()) {