mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
Fix crash when VDS show tags is unchecked
This commit is contained in:
parent
18ac4c2bd4
commit
d1a3d631ec
1 changed files with 4 additions and 5 deletions
|
|
@ -13,7 +13,8 @@
|
||||||
DeckPreviewWidget::DeckPreviewWidget(QWidget *_parent,
|
DeckPreviewWidget::DeckPreviewWidget(QWidget *_parent,
|
||||||
VisualDeckStorageWidget *_visualDeckStorageWidget,
|
VisualDeckStorageWidget *_visualDeckStorageWidget,
|
||||||
const QString &_filePath)
|
const QString &_filePath)
|
||||||
: QWidget(_parent), visualDeckStorageWidget(_visualDeckStorageWidget), filePath(_filePath)
|
: QWidget(_parent), visualDeckStorageWidget(_visualDeckStorageWidget), filePath(_filePath),
|
||||||
|
colorIdentityWidget(nullptr), deckTagsDisplayWidget(nullptr)
|
||||||
{
|
{
|
||||||
layout = new QVBoxLayout(this);
|
layout = new QVBoxLayout(this);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
@ -79,10 +80,8 @@ bool DeckPreviewWidget::checkVisibility() const
|
||||||
|
|
||||||
void DeckPreviewWidget::updateTagsVisibility(bool visible)
|
void DeckPreviewWidget::updateTagsVisibility(bool visible)
|
||||||
{
|
{
|
||||||
if (visible) {
|
if (deckTagsDisplayWidget) {
|
||||||
deckTagsDisplayWidget->setVisible(true);
|
deckTagsDisplayWidget->setHidden(!visible);
|
||||||
} else {
|
|
||||||
deckTagsDisplayWidget->setHidden(true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue