Browse Source

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

friendrequests with html
pull/2978/head
sudden6 10 years ago
parent
commit
4a706f80dd
  1. 3
      src/widget/form/addfriendform.cpp

3
src/widget/form/addfriendform.cpp

@ -97,7 +97,7 @@ AddFriendForm::~AddFriendForm() @@ -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 @@ -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);

Loading…
Cancel
Save