WalletInfoDialog: fix open wallet dir on windows

This commit is contained in:
tobtoht 2023-01-31 16:17:55 +01:00
parent 4ceea602fe
commit 96928f1a74
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -41,8 +41,7 @@ WalletInfoDialog::WalletInfoDialog(QSharedPointer<AppContext> ctx, QWidget *pare
void WalletInfoDialog::openWalletDir() {
QFileInfo file(m_ctx->wallet->keysPath());
QDesktopServices::openUrl(QUrl(QString("file://%1").arg(file.absolutePath()), QUrl::TolerantMode));
QDesktopServices::openUrl(QUrl::fromLocalFile(file.absolutePath()));
}
WalletInfoDialog::~WalletInfoDialog() = default;