Skip to content

Commit 848223a

Browse files
committed
gui: display legacy file location when asking user to import it.
Signed-off-by: Camila Ayres <[email protected]>
1 parent fd09466 commit 848223a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gui/accountmanager.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -656,10 +656,10 @@ bool AccountManager::confirmRestoreExistingAccounts() const
656656
&& Theme::instance()->displayLegacyImportDialog()
657657
&& !configFile.discoveredLegacyConfigFile().isEmpty()) {
658658
const auto importQuestion = accountsListSize > 1
659-
? tr("%1 accounts were detected from a legacy desktop client.\n"
660-
"Should the accounts be imported?").arg(QString::number(accountsListSize))
661-
: tr("1 account was detected from a legacy desktop client.\n"
662-
"Should the account be imported?");
659+
? tr("%1 accounts were detected from a legacy desktop client at %2.\n"
660+
"Should the accounts be imported?").arg(QString::number(accountsListSize), configFile.discoveredLegacyConfigFile())
661+
: tr("1 account was detected from a legacy desktop client at %1.\n"
662+
"Should the account be imported?").arg(configFile.discoveredLegacyConfigFile());
663663
const auto importMessageBox = new QMessageBox(QMessageBox::Question, tr("Legacy import"), importQuestion);
664664
importMessageBox->addButton(tr("Import"), QMessageBox::AcceptRole);
665665
const auto skipButton = importMessageBox->addButton(tr("Skip"), QMessageBox::DestructiveRole);

0 commit comments

Comments
 (0)