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:
parent
4d236c6236
commit
4a706f80dd
|
@ -97,7 +97,7 @@ AddFriendForm::~AddFriendForm()
|
||||||
|
|
||||||
bool AddFriendForm::isShown() const
|
bool AddFriendForm::isShown() const
|
||||||
{
|
{
|
||||||
if (main->isVisible())
|
if (head->isVisible())
|
||||||
{
|
{
|
||||||
head->window()->windowHandle()->alert(0);
|
head->window()->windowHandle()->alert(0);
|
||||||
return true;
|
return true;
|
||||||
|
@ -290,6 +290,7 @@ void AddFriendForm::addFriendRequestWidget(const QString &friendAddress, const Q
|
||||||
horLayout->addWidget(friendLabel);
|
horLayout->addWidget(friendLabel);
|
||||||
|
|
||||||
QLabel* messageLabel = new QLabel(message);
|
QLabel* messageLabel = new QLabel(message);
|
||||||
|
messageLabel->setTextFormat(Qt::PlainText);
|
||||||
messageLabel->setWordWrap(true);
|
messageLabel->setWordWrap(true);
|
||||||
horLayout->addWidget(messageLabel, 1);
|
horLayout->addWidget(messageLabel, 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user