From 3eb9412dc700249ca9adf364c2dfec076ac5fc6c Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sat, 3 Jul 2021 00:12:18 +0200 Subject: [PATCH] Wizard: fix wallet open --- src/wizard/PageOpenWallet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wizard/PageOpenWallet.cpp b/src/wizard/PageOpenWallet.cpp index ed9fa2a..c4eea2b 100644 --- a/src/wizard/PageOpenWallet.cpp +++ b/src/wizard/PageOpenWallet.cpp @@ -61,8 +61,9 @@ void PageOpenWallet::updatePath() { return; } - m_walletFile = index.model()->data(index.siblingAtColumn(WalletKeysFilesModel::Path), Qt::DisplayRole).toString(); - ui->linePath->setText(m_walletFile); + m_walletFile = index.model()->data(index.siblingAtColumn(WalletKeysFilesModel::Path), Qt::UserRole).toString(); + QString path = index.model()->data(index.siblingAtColumn(WalletKeysFilesModel::Path), Qt::DisplayRole).toString(); + ui->linePath->setText(path); } int PageOpenWallet::nextId() const {