1
0
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:
sudden6 2016-02-26 12:15:31 +01:00
parent 1c65ec7fa6
commit 4d236c6236

View File

@ -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;