Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(settings): changing language sets title to "Add Friend"
Browse files Browse the repository at this point in the history
This fixes issue #3708.
Changing language sets title of settings widget to "Settings" instead
of wrong "Add Friend".
  • Loading branch information
ezavod committed Apr 23, 2017
1 parent c417071 commit 4886868
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2318,8 +2318,9 @@ void Widget::retranslateUi()
actionQuit->setText(tr("Exit", "Tray action menu to exit tox"));
actionShow->setText(tr("Show", "Tray action menu to show qTox window"));

if (!Settings::getInstance().getSeparateWindow())
setWindowTitle(fromDialogType(DialogType::AddDialog));
if (!Settings::getInstance().getSeparateWindow() && (settingsWidget && settingsWidget->isShown())) {
setWindowTitle(fromDialogType(DialogType::SettingDialog));
}

friendRequestsUpdate();
groupInvitesUpdate();
Expand Down

0 comments on commit 4886868

Please sign in to comment.