mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-24 18:34:49 -08:00
[VDS] Fix crash when tab is opened before card database is loaded (#6553)
This commit is contained in:
@@ -78,7 +78,11 @@ void DeckPreviewWidget::enterEvent(QEvent *event)
|
||||
#endif
|
||||
{
|
||||
QWidget::enterEvent(event);
|
||||
reloadIfModified();
|
||||
|
||||
// don't do reloads until widgets have been created
|
||||
if (bannerCardComboBox != nullptr) {
|
||||
reloadIfModified();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user