mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
merge bitcoin#16044: fix opening bitcoin.conf via Preferences on macOS
This commit is contained in:
parent
6f98a32403
commit
843e6d4c86
@ -606,8 +606,15 @@ void openConfigfile()
|
||||
fs::path pathConfig = GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME));
|
||||
|
||||
/* Open dash.conf with the associated application */
|
||||
if (fs::exists(pathConfig))
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig)));
|
||||
if (fs::exists(pathConfig)) {
|
||||
bool res = QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig)));
|
||||
#ifdef Q_OS_MAC
|
||||
// Workaround for macOS-specific behavior; see #15409.
|
||||
if (!res) {
|
||||
res = QProcess::startDetached("/usr/bin/open", QStringList{"-t", boostPathToQString(pathConfig)});
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
void showBackups()
|
||||
|
Loading…
Reference in New Issue
Block a user