forked from blue/squawk
some bugs and corner cases
This commit is contained in:
parent
dd62f84acc
commit
0bcfd779b8
4 changed files with 44 additions and 6 deletions
|
@ -386,7 +386,11 @@ void Conversation::onClearButton()
|
|||
|
||||
void Conversation::setAvatar(const QString& path)
|
||||
{
|
||||
m_ui->avatar->setPixmap(path.size() == 0 ? Shared::iconPath("user", true) : path);
|
||||
if (path.size() == 0) {
|
||||
m_ui->avatar->setPixmap(Shared::icon("user", true).pixmap(QSize(50, 50)));
|
||||
} else {
|
||||
m_ui->avatar->setPixmap(path);
|
||||
}
|
||||
}
|
||||
|
||||
void Conversation::onAttachResize(const QSize& oldSize, const QSize& newSize)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue