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;