All pastes #222781 Raw Edit

agateau

public text v1 · immutable
#222781 ·published 2006-10-26 15:07 UTC
rendered paste body
Index: QtChatWidget.cpp
===================================================================
--- QtChatWidget.cpp    (revision 8187)
+++ QtChatWidget.cpp    (working copy)
@@ -233,7 +233,7 @@
        pixmap.loadFromData((uchar *)data.c_str(), data.size());
        _avatarFrame->addRemoteContact(
                QString::fromStdString(contactId),
-               QString::fromStdString(profile.getDisplayName()),
+               QString::fromUtf8(profile.getDisplayName().c_str()),
                QString::fromStdString(imContact.getContactId()),
                pixmap
        );
@@ -487,7 +487,7 @@
                pixmap.loadFromData((uchar *)data.c_str(), data.size());
                _avatarFrame->addRemoteContact(
                        QString::fromStdString(contactId),
-                       QString::fromStdString(profile.getDisplayName()),
+                       QString::fromUtf8(profile.getDisplayName().c_str()),
                        QString::fromStdString((*it).getContactId()),
                        pixmap
                );