1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix notification if friendrequest tab is visible, don't display

friendrequests with html
This commit is contained in:
sudden6 2016-02-26 12:59:03 +01:00
parent 4d236c6236
commit 4a706f80dd

View File

@ -97,7 +97,7 @@ AddFriendForm::~AddFriendForm()
bool AddFriendForm::isShown() const
{
if (main->isVisible())
if (head->isVisible())
{
head->window()->windowHandle()->alert(0);
return true;
@ -290,6 +290,7 @@ void AddFriendForm::addFriendRequestWidget(const QString &friendAddress, const Q
horLayout->addWidget(friendLabel);
QLabel* messageLabel = new QLabel(message);
messageLabel->setTextFormat(Qt::PlainText);
messageLabel->setWordWrap(true);
horLayout->addWidget(messageLabel, 1);