projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make Quassel not crash on color codes > 15 (Sput)
[quassel.git]
/
src
/
client
/
networkmodel.cpp
diff --git
a/src/client/networkmodel.cpp
b/src/client/networkmodel.cpp
index
45204fa
..
ff44942
100644
(file)
--- a/
src/client/networkmodel.cpp
+++ b/
src/client/networkmodel.cpp
@@
-215,15
+215,10
@@
QString NetworkItem::currentServer() const {
}
int NetworkItem::nickCount() const {
}
int NetworkItem::nickCount() const {
- BufferItem *bufferItem;
- int count = 0;
- for(int i = 0; i < childCount(); i++) {
- bufferItem = qobject_cast<BufferItem *>(child(i));
- if(!bufferItem)
- continue;
- count += bufferItem->nickCount();
- }
- return count;
+ if(_network)
+ return _network->ircUsers().count();
+ else
+ return 0;
}
void NetworkItem::attachNetwork(Network *network) {
}
void NetworkItem::attachNetwork(Network *network) {