projects
/
situare
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0ed65d
)
Addded ListView::m_previousItem null set when items are deleted.
author
Jussi Laitinen
<jupe@l3l7588.ixonos.local>
Wed, 18 Aug 2010 09:28:01 +0000
(12:28 +0300)
committer
Jussi Laitinen
<jupe@l3l7588.ixonos.local>
Wed, 18 Aug 2010 09:28:01 +0000
(12:28 +0300)
src/ui/listview.cpp
patch
|
blob
|
history
diff --git
a/src/ui/listview.cpp
b/src/ui/listview.cpp
index
cd0090a
..
c1b8ca9
100644
(file)
--- a/
src/ui/listview.cpp
+++ b/
src/ui/listview.cpp
@@
-76,6
+76,8
@@
void ListView::clearUnused(const QStringList &itemIDs)
ListItem *item = m_listItems.take(key);
if (item) {
takeItem(row(item));
+ if (m_previousItem == item)
+ m_previousItem = 0;
delete item;
}
}