diff --git a/mainwindow.ui b/mainwindow.ui
index 83139cb6c..ff345391b 100644
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -1471,6 +1471,9 @@ QSplitter:handle{
:/img/contact.png
+
+ true
+
true
diff --git a/widget/widget.cpp b/widget/widget.cpp
index 73b6946a2..b2e1de6b5 100644
--- a/widget/widget.cpp
+++ b/widget/widget.cpp
@@ -320,7 +320,8 @@ void Widget::onAvatarClicked()
void Widget::onSelfAvatarLoaded(const QPixmap& pic)
{
- ui->profilePicture->setPixmap(pic);
+ QPixmap scaled = pic.scaledToWidth(40, Qt::SmoothTransformation);
+ ui->profilePicture->setPixmap(scaled);
}
void Widget::onConnected()