Ensure customBackdropFile is not empty

This commit is contained in:
Craig Drummond
2018-02-14 17:31:15 +00:00
committed by Craig Drummond
parent 8a0f6e4438
commit a7d1cb2399

View File

@@ -422,7 +422,7 @@ void ContextWidget::readConfig()
break;
case PlayQueueView::BI_Custom:
if (origType!=backdropType || backdropOpacity!=origOpacity || backdropBlur!=origBlur || origCustomBackdropFile!=customBackdropFile) {
updateImage(QImage(customBackdropFile));
updateImage(customBackdropFile.isEmpty() ? QImage() : QImage(customBackdropFile));
}
break;
}