Fixed irc rename.

This commit is contained in:
lotodore
2007-09-30 16:36:33 +00:00
parent 8f179acd9f
commit 3e4ae85fff
@@ -79,6 +79,12 @@ void LobbyChat::playerChanged(QString oldNick, QString newNick)
QList<QTreeWidgetItem *> tmpList(myLobby->treeWidget_NickList->findItems(oldNick, Qt::MatchExactly));
if (!tmpList.empty())
tmpList.front()->setData(0, Qt::DisplayRole, newNick);
else
{
tmpList = myLobby->treeWidget_NickList->findItems("@" + oldNick, Qt::MatchExactly);
if (!tmpList.empty())
tmpList.front()->setData(0, Qt::DisplayRole, "@" + newNick);
}
if (myNick == oldNick)
myNick = newNick;