mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Model col widths off deck editor & disable button if no tokens in deck (#2751)
This commit is contained in:
parent
d970b9e50f
commit
f3f83882e0
4 changed files with 23 additions and 13 deletions
|
|
@ -345,11 +345,13 @@ void TabDeckEditor::createCentralFrame()
|
|||
connect(databaseView, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(actAddCard()));
|
||||
|
||||
QByteArray dbHeaderState = settingsCache->layouts().getDeckEditorDbHeaderState();
|
||||
if(dbHeaderState.isNull())
|
||||
if (dbHeaderState.isNull())
|
||||
{
|
||||
// first run
|
||||
databaseView->setColumnWidth(0, 200);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
databaseView->header()->restoreState(dbHeaderState);
|
||||
}
|
||||
connect(databaseView->header(), SIGNAL(geometriesChanged()), this, SLOT(saveDbHeaderState()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue