Browse Source

fix friend request notification if friendrequestform is hidden

pull/2978/head
sudden6 10 years ago
parent
commit
4d236c6236
  1. 5
      src/widget/form/addfriendform.cpp

5
src/widget/form/addfriendform.cpp

@ -132,7 +132,10 @@ bool AddFriendForm::addFriendRequest(const QString &friendAddress, const QString @@ -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…
Cancel
Save