1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(friends): Friend request button target location

Change friendform pane numbering to use existing enum instead of hardcoded values, udpate enum to match current pane layout.
Fixes #4631
This commit is contained in:
anthony.bilinski 2017-09-06 18:35:35 -07:00
parent 89198f5e2d
commit 7f36ec9219
2 changed files with 5 additions and 5 deletions

View File

@ -365,9 +365,9 @@ void AddFriendForm::retranslateUi()
onIdChanged(toxId.text()); onIdChanged(toxId.text());
tabWidget->setTabText(0, tr("Add a friend")); tabWidget->setTabText(AddFriend, tr("Add a friend"));
tabWidget->setTabText(1, tr("Import contacts")); tabWidget->setTabText(ImportContacts, tr("Import contacts"));
tabWidget->setTabText(2, tr("Friend requests")); tabWidget->setTabText(FriendRequest, tr("Friend requests"));
for (QPushButton* acceptButton : acceptButtons) { for (QPushButton* acceptButton : acceptButtons) {
retranslateAcceptButton(acceptButton); retranslateAcceptButton(acceptButton);

View File

@ -42,8 +42,8 @@ public:
enum Mode enum Mode
{ {
AddFriend = 0, AddFriend = 0,
FriendRequest = 1, ImportContacts = 1,
GroupInvite = 2 FriendRequest = 2
}; };
AddFriendForm(); AddFriendForm();