mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 21:04:07 -07:00
Fix crash.
Took 12 minutes
This commit is contained in:
parent
bd960a1945
commit
2bafc8dfe7
1 changed files with 8 additions and 2 deletions
|
|
@ -76,7 +76,11 @@ GameSelector::GameSelector(AbstractClient *_client,
|
||||||
|
|
||||||
gameListView->header()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
|
gameListView->header()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
|
||||||
|
|
||||||
quickFilterToolBar = new GameSelectorQuickFilterToolBar(this, tabSupervisor, gameListProxyModel, gameTypeMap);
|
if (showFilters && restoresettings) {
|
||||||
|
quickFilterToolBar = new GameSelectorQuickFilterToolBar(this, tabSupervisor, gameListProxyModel, gameTypeMap);
|
||||||
|
} else {
|
||||||
|
quickFilterToolBar = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
filterButton = new QPushButton;
|
filterButton = new QPushButton;
|
||||||
filterButton->setIcon(QPixmap("theme:icons/search"));
|
filterButton->setIcon(QPixmap("theme:icons/search"));
|
||||||
|
|
@ -121,7 +125,9 @@ GameSelector::GameSelector(AbstractClient *_client,
|
||||||
buttonLayout->setAlignment(Qt::AlignTop);
|
buttonLayout->setAlignment(Qt::AlignTop);
|
||||||
|
|
||||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||||
mainLayout->addWidget(quickFilterToolBar);
|
if (showFilters && restoresettings) {
|
||||||
|
mainLayout->addWidget(quickFilterToolBar);
|
||||||
|
}
|
||||||
mainLayout->addWidget(gameListView);
|
mainLayout->addWidget(gameListView);
|
||||||
mainLayout->addLayout(buttonLayout);
|
mainLayout->addLayout(buttonLayout);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue