Model col widths off deck editor & disable button if no tokens in deck (#2751)

This commit is contained in:
Zach H 2017-06-04 13:58:34 -04:00 committed by GitHub
parent d970b9e50f
commit f3f83882e0
4 changed files with 23 additions and 13 deletions

View file

@ -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()));