From d6eb5c5c7c006483481f1cbe7a425377797a21e1 Mon Sep 17 00:00:00 2001 From: Camila Date: Fri, 22 Sep 2023 08:49:48 +0200 Subject: [PATCH] Address PR comments. Signed-off-by: Camila --- src/gui/accountmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp index aa4417af14bfd..88c8f577d940b 100644 --- a/src/gui/accountmanager.cpp +++ b/src/gui/accountmanager.cpp @@ -179,7 +179,7 @@ bool AccountManager::restoreFromLegacySettings() legacyCfgFileGrandParentFolder + legacyCfgFileRelativePath}; for (const auto &configFile : legacyLocations) { - auto oCSettings = std::make_unique(configFile, QSettings::IniFormat); + const auto oCSettings = std::make_unique(configFile, QSettings::IniFormat); if (oCSettings->status() != QSettings::Status::NoError) { qCInfo(lcAccountManager) << "Error reading legacy configuration file" << oCSettings->status(); break; @@ -192,9 +192,9 @@ bool AccountManager::restoreFromLegacySettings() qCInfo(lcAccountManager) << "Migrate: checking old config " << configFile; if (!forceLegacyImport() && accountsListSize > 0) { const auto importQuestion = accountsListSize > 1 - ? tr("%1 accounts were detected on a legacy desktop client.\n" + ? tr("%1 accounts were detected from a legacy desktop client.\n" "Should the accounts be imported?").arg(QString::number(accountsListSize)) - : tr("1 account was detected on a legacy desktop client.\n" + : tr("1 account was detected from a legacy desktop client.\n" "Should the account be imported?"); const auto importMessageBox = new QMessageBox(QMessageBox::Question, tr("Legacy import"), importQuestion); importMessageBox->addButton(tr("Import"), QMessageBox::AcceptRole);