projects
/
situare
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc0d6af
)
Added Item deselection when list is filtered by ID.
author
Jussi Laitinen
<jupe@l3l7588.ixonos.local>
Thu, 19 Aug 2010 11:59:43 +0000
(14:59 +0300)
committer
Jussi Laitinen
<jupe@l3l7588.ixonos.local>
Thu, 19 Aug 2010 11:59:43 +0000
(14:59 +0300)
src/ui/listview.cpp
patch
|
blob
|
history
diff --git
a/src/ui/listview.cpp
b/src/ui/listview.cpp
index
c571837
..
fdcea75
100644
(file)
--- a/
src/ui/listview.cpp
+++ b/
src/ui/listview.cpp
@@
-116,10
+116,12
@@
void ListView::filter(const QList<QString> &itemIDs)
m_filteredItemIDs = itemIDs;
foreach (ListItem *item, m_listItems) {
- if (itemIDs.contains(m_listItems.key(item)))
+ if (itemIDs.contains(m_listItems.key(item))) {
item->setHidden(false);
- else
+ } else {
+ item->setSelected(false);
item->setHidden(true);
+ }
}
emit listItemSelectionChanged();