projects
/
situare
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67dc299
)
Fixed last item remove method.
author
Jussi Laitinen
<jupe@l3l7588.ixonos.local>
Fri, 3 Sep 2010 06:35:10 +0000
(09:35 +0300)
committer
Jussi Laitinen
<jupe@l3l7588.ixonos.local>
Fri, 3 Sep 2010 06:35:10 +0000
(09:35 +0300)
src/ui/listview.cpp
patch
|
blob
|
history
diff --git
a/src/ui/listview.cpp
b/src/ui/listview.cpp
index
40ec9c2
..
c1e8617
100644
(file)
--- a/
src/ui/listview.cpp
+++ b/
src/ui/listview.cpp
@@
-234,11
+234,13
@@
void ListView::removeLastItem()
if (item) {
if (item) {
- m_listItems.remove(item->title());
+ QString key = m_listItems.key(item);
+ m_listItems.remove(key);
takeItem(row(item));
if (m_currentItem == item)
m_currentItem = 0;
delete item;
+ item = 0;
}
}
}