]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
WalletInfoDialog: fix open wallet dir on windows
authortobtoht <tob@featherwallet.org>
Tue, 31 Jan 2023 15:17:55 +0000 (16:17 +0100)
committertobtoht <tob@featherwallet.org>
Tue, 31 Jan 2023 15:17:55 +0000 (16:17 +0100)
src/dialog/WalletInfoDialog.cpp

index f494f2aa573423e8c623b83fc1ce234f87f19be6..b93df83c7612cf51a997eedf075fb9ab04581d35 100644 (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;
\ No newline at end of file