mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -07:00
[VDS] Fix crash when tab is opened before card database is loaded (#6553)
This commit is contained in:
parent
999733fc0f
commit
d363ec5154
1 changed files with 5 additions and 1 deletions
|
|
@ -78,7 +78,11 @@ void DeckPreviewWidget::enterEvent(QEvent *event)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
QWidget::enterEvent(event);
|
QWidget::enterEvent(event);
|
||||||
reloadIfModified();
|
|
||||||
|
// don't do reloads until widgets have been created
|
||||||
|
if (bannerCardComboBox != nullptr) {
|
||||||
|
reloadIfModified();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue