Browse Source

fix(settings): changing language sets title to "Add Friend"

This fixes issue #3708.
Changing language sets title of settings widget to "Settings" instead
of wrong "Add Friend".
reviewable/pr4340/r1
ezavod 8 years ago
parent
commit
4886868ece
No known key found for this signature in database
GPG Key ID: 5DFDD9A0D8E5A9B6
  1. 5
      src/widget/widget.cpp

5
src/widget/widget.cpp

@ -2318,8 +2318,9 @@ void Widget::retranslateUi() @@ -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();

Loading…
Cancel
Save