Commit c7dff412 authored by Ingo Klöcker's avatar Ingo Klöcker Committed by Ingo Klöcker
Browse files

kstyle: Remove superfluous null pointer check of painter

Fixes code quality issue "Either the condition 'painter' is redundant or
there is possible null pointer dereference: painter."
parent 8c00371a
......@@ -3986,7 +3986,7 @@ bool Style::drawPanelMenuPrimitive(const QStyleOption *option, QPainter *painter
if (StyleConfigData::menuOpacity() < 100) {
if (painter && widget && widget->isWindow()) {
if (widget && widget->isWindow()) {
background.setAlphaF(StyleConfigData::menuOpacity() / 100.0);
Supports Markdown
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