From kde-commits Wed Jan 19 19:50:16 2005 From: Martin Koller Date: Wed, 19 Jan 2005 19:50:16 +0000 To: kde-commits Subject: kdebase/libkonq Message-Id: <20050119195016.520C215F98 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=110616424031742 CVS commit by mkoller: BUG: 95843 Don't set an empty QPixmap as the result is undefined M +10 -1 konq_propsview.cc 1.86 --- kdebase/libkonq/konq_propsview.cc #1.85:1.86 @@ -541,5 +541,14 @@ void KonqPropsView::applyColors(QWidget widget->setPaletteBackgroundColor( bgColor( widget ) ); else - widget->setPaletteBackgroundPixmap( loadPixmap() ); + { + QPixmap pix = loadPixmap(); + // don't set an null pixmap, as this leads to + // undefined results with regards to the background of widgets + // that have the iconview as a parent and on the iconview itself + // e.g. the rename textedit widget when renaming a QIconViewItem + // Qt-issue: N64698 + if ( ! pix.isNull() ) + widget->setPaletteBackgroundPixmap( pix ); + } if ( m_textColor.isValid() )