[VDS] Fix crash when tab is opened before card database is loaded (#6553)

This commit is contained in:
RickyRister 2026-01-23 00:58:46 -08:00 committed by GitHub
parent 999733fc0f
commit d363ec5154
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,8 +78,12 @@ void DeckPreviewWidget::enterEvent(QEvent *event)
#endif #endif
{ {
QWidget::enterEvent(event); QWidget::enterEvent(event);
// don't do reloads until widgets have been created
if (bannerCardComboBox != nullptr) {
reloadIfModified(); reloadIfModified();
} }
}
/** /**
* @brief Sets the lastModifiedTime to the value given by the file. * @brief Sets the lastModifiedTime to the value given by the file.