Merge pull request #416 from poixen/partialsearch
Partial Card Name Search
This commit is contained in:
commit
b3715c5da2
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ void TabDeckEditor::updateCardInfoRight(const QModelIndex ¤t, const QModel
|
||||||
|
|
||||||
void TabDeckEditor::updateSearch(const QString &search)
|
void TabDeckEditor::updateSearch(const QString &search)
|
||||||
{
|
{
|
||||||
databaseDisplayModel->setCardNameBeginning(search);
|
databaseDisplayModel->setCardName(search);
|
||||||
QModelIndexList sel = databaseView->selectionModel()->selectedRows();
|
QModelIndexList sel = databaseView->selectionModel()->selectedRows();
|
||||||
if (sel.isEmpty() && databaseDisplayModel->rowCount())
|
if (sel.isEmpty() && databaseDisplayModel->rowCount())
|
||||||
databaseView->selectionModel()->setCurrentIndex(databaseDisplayModel->index(0, 0), QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
|
databaseView->selectionModel()->setCurrentIndex(databaseDisplayModel->index(0, 0), QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
|
||||||
|
|
Loading…
Reference in a new issue