1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
dubslow 2014-09-27 16:44:08 -05:00
parent 28d2680fec
commit b1b89ac1f4
2 changed files with 4 additions and 3 deletions

View File

@ -223,9 +223,9 @@ void Core::start()
}
else
{
QPixmap pic = Settings::getInstance().getSavedAvatar(getSelfId().toString());
qDebug() << "self avatar missing, trying by id";
qDebug() << "Core: self avatar missing, trying by id";
// this will leave a avatars/<selfid>.png duplicate of avatar.png, but whatever
QPixmap pic = Settings::getInstance().getSavedAvatar(getSelfId().toString());
if (!pic.isNull() && !pic.size().isEmpty())
{
QByteArray data;

View File

@ -444,7 +444,7 @@ void Widget::setStatusMessage(const QString &statusMessage)
void Widget::addFriend(int friendId, const QString &userId)
{
qDebug() << "Widget: Adding friend with id "+userId;
qDebug() << "Widget: Adding friend with id" << userId;
Friend* newfriend = FriendList::addFriend(friendId, userId);
QLayout* layout = contactListWidget->getFriendLayout(Status::Offline);
layout->addWidget(newfriend->widget);
@ -480,6 +480,7 @@ void Widget::addFriend(int friendId, const QString &userId)
QPixmap avatar = Settings::getInstance().getSavedAvatar(userId.left(64)); // just to be safe
if (!avatar.isNull())
{
qWarning() << "Widget: loadded avatar for id" << userId;
newfriend->chatForm->onAvatarChange(friendId, avatar);
newfriend->widget->onAvatarChange(friendId, avatar);
}