From 4886868eceec38bdb13031f36fb916828a399f0a Mon Sep 17 00:00:00 2001 From: ezavod Date: Tue, 18 Apr 2017 18:54:14 +0200 Subject: [PATCH] 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". --- src/widget/widget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index d00d3e180..b302e9a88 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -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();