projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b83a4e4
)
fixes #903 - Odd umode case can make user disappear from nick list
author
Marcus Eggenberger
<egs@quassel-irc.org>
Fri, 30 Apr 2010 15:56:18 +0000
(17:56 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Fri, 30 Apr 2010 15:56:18 +0000
(17:56 +0200)
src/client/treemodel.cpp
patch
|
blob
|
history
diff --git
a/src/client/treemodel.cpp
b/src/client/treemodel.cpp
index
cc1b08a
..
6ab70e6
100644
(file)
--- a/
src/client/treemodel.cpp
+++ b/
src/client/treemodel.cpp
@@
-127,6
+127,10
@@
void AbstractTreeItem::customEvent(QEvent *event) {
if(childRow == -1)
return;
+ // since we are called asynchronously we have to recheck if the item in question still has no childs
+ if(removeEvent->child()->childCount())
+ return;
+
removeChild(childRow);
}