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();
currentBufferInfo = current.data(NetworkModel::BufferInfoRole).value<BufferInfo>();
updateNickSelector();
+
+ ui.inputEdit->setEnabled(current.data(NetworkModel::ItemActiveRole).value<bool>());
}
const Network *InputWidget::currentNetwork() const {
quasselVersion = "0.2.0-pre";
quasselDate = "2008-01-29";
- quasselBuild = 409;
+ quasselBuild = 410;
//! Minimum client build number the core needs
clientBuildNeeded = 358;