Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
58ace2fa
Commit
58ace2fa
authored
Jul 20, 2011
by
Max-Wilhelm Bruker
Browse files
deck editor autoselection
parent
d0fa9d92
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/window_deckeditor.cpp
View file @
58ace2fa
...
...
@@ -268,6 +268,9 @@ void WndDeckEditor::updateCardInfoRight(const QModelIndex ¤t, const QModel
void
WndDeckEditor
::
updateSearch
(
const
QString
&
search
)
{
databaseDisplayModel
->
setCardNameBeginning
(
search
);
QModelIndexList
sel
=
databaseView
->
selectionModel
()
->
selectedRows
();
if
(
sel
.
isEmpty
()
&&
databaseDisplayModel
->
rowCount
())
databaseView
->
selectionModel
()
->
setCurrentIndex
(
databaseDisplayModel
->
index
(
0
,
0
),
QItemSelectionModel
::
SelectCurrent
|
QItemSelectionModel
::
Rows
);
}
bool
WndDeckEditor
::
confirmClose
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment