mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
minor
This commit is contained in:
parent
28d2680fec
commit
b1b89ac1f4
4
core.cpp
4
core.cpp
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user