}
- if(!success || success) {
+ if(!success) {
+ qDebug() << "didn't find User:" << ircUser << (quint64)ircUser;
qDebug() << "==== Childlist for Item:" << this << id() << bufferName() << "====";
for(int i = 0; i < childCount(); i++) {
categoryItem = qobject_cast<UserCategoryItem *>(child(i));
return _networkId.toInt();
}
+void NetworkItem::setActive(bool connected) {
+ Q_UNUSED(connected);
+ emit dataChanged();
+}
+
bool NetworkItem::isActive() const {
- return _network;
+ if(_network)
+ return _network->isConnected();
+ else
+ return false;
}
QString NetworkItem::networkName() const {
this, SLOT(setCurrentServer(QString)));
connect(network, SIGNAL(ircChannelAdded(QString)),
this, SLOT(attachIrcChannel(QString)));
+ connect(network, SIGNAL(connectedSet(bool)),
+ this, SLOT(setActive(bool)));
+
// FIXME: connect this and that...
emit dataChanged();