mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix friend request notification if friendrequestform is hidden
This commit is contained in:
parent
1c65ec7fa6
commit
4d236c6236
@ -132,7 +132,10 @@ bool AddFriendForm::addFriendRequest(const QString &friendAddress, const QString
|
||||
if(Settings::getInstance().addFriendRequest(friendAddress, message))
|
||||
{
|
||||
addFriendRequestWidget(friendAddress, message);
|
||||
onCurrentChanged(tabWidget->currentIndex());
|
||||
if(isShown())
|
||||
{
|
||||
onCurrentChanged(tabWidget->currentIndex());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user