Skip to content

Commit

Permalink
Do not crash when accessing icon from qquickcombobox
Browse files Browse the repository at this point in the history
  • Loading branch information
grulja committed Nov 4, 2019
1 parent e53c795 commit 1d09ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion style/adwaitastyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4713,7 +4713,7 @@ bool Style::drawComboBoxLabelControl(const QStyleOption *option, QPainter *paint
QRect editRect = proxy()->subControlRect(CC_ComboBox, cb, SC_ComboBoxEditField, widget);
painter->save();
painter->setClipRect(editRect);
if (!cb->currentIcon.isNull()) {
if (!cb->currentIcon.isNull() && qobject_cast<const QComboBox *>(widget)) {
QIcon::Mode mode;

if ((cb->state & QStyle::State_Selected) && (cb->state & QStyle::State_Active)) {
Expand Down

0 comments on commit 1d09ba4

Please sign in to comment.