X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Finputwidget.cpp;h=3c7bec537a01dd78edcd153e55570428bc0d03f4;hb=61563967e74a1b02e82d7d8946e33c188c72e944;hp=7d1096966a32ddfe440f2fd2f4ab9d6ef5c1709e;hpb=16b0c5bdd6fdaf3e6844ea5ec32e61b20e441284;p=quassel.git diff --git a/src/qtui/inputwidget.cpp b/src/qtui/inputwidget.cpp index 7d109696..3c7bec53 100644 --- a/src/qtui/inputwidget.cpp +++ b/src/qtui/inputwidget.cpp @@ -155,6 +155,7 @@ void InputWidget::connectMyIrcUser() { connect(network->me(), SIGNAL(userModesRemoved(QString)), this, SLOT(updateNickSelector())); connect(network->me(), SIGNAL(awaySet(bool)), this, SLOT(updateNickSelector())); disconnect(network, SIGNAL(myNickSet(const QString &)), this, SLOT(connectMyIrcUser())); + updateNickSelector(); } else { connect(network, SIGNAL(myNickSet(const QString &)), this, SLOT(connectMyIrcUser())); } @@ -172,8 +173,9 @@ void InputWidget::setIdentity(IdentityId identityId) { const Identity *identity = Client::identity(identityId); if(identity) { - connect(identity, SIGNAL(nicksSet(QStringList)), - this, SLOT(updateNickSelector())); + connect(identity, SIGNAL(nicksSet(QStringList)), this, SLOT(updateNickSelector())); + } else { + _identityId = 0; } updateNickSelector(); } @@ -187,7 +189,7 @@ void InputWidget::updateNickSelector() const { const Identity *identity = Client::identity(net->identity()); if(!identity) { - qWarning() << "InputWidget::updateNickSelector(): can't find Identity for Network" << net->networkId(); + qWarning() << "InputWidget::updateNickSelector(): can't find Identity for Network" << net->networkId() << "IdentityId:" << net->identity(); return; }