From 4d236c62361638cbd34d8c2a7fc778707a66d04f Mon Sep 17 00:00:00 2001 From: sudden6 Date: Fri, 26 Feb 2016 12:15:31 +0100 Subject: [PATCH] fix friend request notification if friendrequestform is hidden --- src/widget/form/addfriendform.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/widget/form/addfriendform.cpp b/src/widget/form/addfriendform.cpp index 368d94936..80415955d 100644 --- a/src/widget/form/addfriendform.cpp +++ b/src/widget/form/addfriendform.cpp @@ -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;