Check the right items are valid in iconItem
Reviewed-By: Marco Martin
This commit is contained in:
parent
9d24b7e391
commit
f123671346
@ -383,7 +383,7 @@ void IconItem::loadPixmap()
|
||||
} else if (m_svgIcon) {
|
||||
m_svgIcon->resize(size, size);
|
||||
result = m_svgIcon->pixmap(m_source.toString());
|
||||
} else if (!m_source.isNull()) {
|
||||
} else if (!m_icon.isNull()) {
|
||||
result = m_icon.pixmap(QSize(size, size));
|
||||
} else if (!m_pixmapIcon.isNull()) {
|
||||
result = m_pixmapIcon;
|
||||
|
Loading…
Reference in New Issue
Block a user