Changeset 4757
- Timestamp:
- 11/09/06 05:22:35 (22 months ago)
- Files:
-
- 1 modified
-
trunk/qt-gui/src/usereventdlg.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt-gui/src/usereventdlg.cpp
r4735 r4757 1796 1796 if (mainwin->m_bMsgChatView) 1797 1797 { 1798 ICQUser *u = gUserManager.FetchUser(szId, m_nPPID, LOCK_R); 1799 QString userName; 1800 if (u) 1801 userName = QString::fromUtf8(u->GetAlias()); 1802 else 1803 userName = szId; 1804 gUserManager.DropUser(u); 1805 1798 1806 QString strMsg = QString("%1 has joined the conversation.") 1799 .arg( szId);1807 .arg(userName); 1800 1808 mleHistory->addNotice(QDateTime::currentDateTime(), strMsg); 1801 1809 } … … 1823 1831 if (mainwin->m_bMsgChatView) 1824 1832 { 1833 ICQUser *u = gUserManager.FetchUser(szId, m_nPPID, LOCK_R); 1834 QString userName; 1835 if (u) 1836 userName = QString::fromUtf8(u->GetAlias()); 1837 else 1838 userName = szId; 1839 1825 1840 QString strMsg = QString("%1 has left the conversation.") 1826 .arg( szId);1841 .arg(userName); 1827 1842 mleHistory->addNotice(QDateTime::currentDateTime(), strMsg); 1828 1843 1829 1844 // Remove the typing notification if active 1830 ICQUser *u = gUserManager.FetchUser(szId, m_nPPID, LOCK_W);1831 1845 if (u && u->GetTyping() == ICQ_TYPING_ACTIVE) 1832 1846 {
