Skip to content

Commit

Permalink
fix(friends): Friend request button target location
Browse files Browse the repository at this point in the history
Change friendform pane numbering to use existing enum instead of hardcoded values, udpate enum to match current pane layout.
Fixes qTox#4631
  • Loading branch information
anthonybilinski committed Sep 7, 2017
1 parent 89198f5 commit c8b8130
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/widget/form/addfriendform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/widget/form/addfriendform.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class AddFriendForm : public QObject
enum Mode
{
AddFriend = 0,
FriendRequest = 1,
GroupInvite = 2
ImportContacts = 1,
FriendRequest = 2
};

AddFriendForm();
Expand Down

0 comments on commit c8b8130

Please sign in to comment.