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

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".
This commit is contained in:
ezavod 2017-04-18 18:54:14 +02:00
parent c417071ee8
commit 4886868ece
No known key found for this signature in database
GPG Key ID: 5DFDD9A0D8E5A9B6

View File

@ -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();