diff --git a/src/widget/form/addfriendform.cpp b/src/widget/form/addfriendform.cpp index d17d1497e..5b93427c9 100644 --- a/src/widget/form/addfriendform.cpp +++ b/src/widget/form/addfriendform.cpp @@ -365,9 +365,9 @@ void AddFriendForm::retranslateUi() onIdChanged(toxId.text()); - tabWidget->setTabText(0, tr("Add a friend")); - tabWidget->setTabText(1, tr("Import contacts")); - tabWidget->setTabText(2, tr("Friend requests")); + tabWidget->setTabText(AddFriend, tr("Add a friend")); + tabWidget->setTabText(ImportContacts, tr("Import contacts")); + tabWidget->setTabText(FriendRequest, tr("Friend requests")); for (QPushButton* acceptButton : acceptButtons) { retranslateAcceptButton(acceptButton); diff --git a/src/widget/form/addfriendform.h b/src/widget/form/addfriendform.h index 6a2a8dd45..130d4c334 100644 --- a/src/widget/form/addfriendform.h +++ b/src/widget/form/addfriendform.h @@ -42,8 +42,8 @@ public: enum Mode { AddFriend = 0, - FriendRequest = 1, - GroupInvite = 2 + ImportContacts = 1, + FriendRequest = 2 }; AddFriendForm();