diff options
Diffstat (limited to 'src/styles')
-rw-r--r-- | src/styles/qcommonstyle.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/styles/qcommonstyle.cpp b/src/styles/qcommonstyle.cpp index 0bad0a5..8d8c4c7 100644 --- a/src/styles/qcommonstyle.cpp +++ b/src/styles/qcommonstyle.cpp @@ -404,6 +404,9 @@ const QStyleControlElementData &populateControlElementDataFromWidget(const QWidg if (iconSet) { ceData.iconSet = *iconSet; } + else { + ceData.iconSet = QIconSet(); + } if (fgPixmap) { ceData.fgPixmap = *fgPixmap; } @@ -538,6 +541,9 @@ const QStyleControlElementData &populateControlElementDataFromWidget(const QWidg if (iconSet) { ceData.iconSet = *iconSet; } + else { + ceData.iconSet = QIconSet(); + } } } // Complex Controls |