Undid Rev 3986 as it prevented the chat window from popping up.

Make the chat window visible only if not already so to prevent restoring if minimized.


git-svn-id: http://voip.null.ro/svn/yate@3988 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-12-19 15:29:38 +00:00
parent 62956d7119
commit cb1e0f94c7
2 changed files with 2 additions and 1 deletions

View File

@ -4353,7 +4353,7 @@ bool ClientContact::showChat(bool visible, bool active)
return Client::self()->delTableRow(s_dockedChatWidget,toString(),w);
return Client::self()->setVisible(m_chatWndName,false);
}
bool ok = Client::self()->setVisible(w->id(),true);
bool ok = Client::self()->getVisible(w->id()) || Client::self()->setVisible(w->id(),true);
if (active) {
if (m_dockedChat)
Client::self()->setSelect(s_dockedChatWidget,toString(),w);

View File

@ -5738,6 +5738,7 @@ bool DefaultLogic::defaultMsgHandler(Message& msg, int id, bool& stopLogic)
c->updateChatWindow(p,"Chat [" + c->m_name + "]",
resStatusImage(res ? res->m_status : ClientResource::Offline));
}
c->showChat(true);
if (chatState)
addChatNotify(*c,chatState,msg.msgTime().sec(),"tempnotify");
if (p) {