qt: Fix crash on fullscreen with status icons enabled

This commit is contained in:
Cacodemon345
2022-02-16 14:57:22 +06:00
parent 611486cb71
commit ab4c68402d

View File

@@ -122,7 +122,7 @@ void RendererCommon::drawStatusBarIcons(QPainter* painter)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
const QPixmap pixmap = label->pixmap();
#else
const QPixmap pixmap = *label->pixmap();
const QPixmap pixmap = label->pixmap() ? *label->pixmap() : QPixmap();
#endif
if (!pixmap.isNull())
{