mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
trivial: fix unused variable treat-warning-as-error in guiutil
This commit is contained in:
parent
9b52fb36da
commit
133f7808b7
@ -607,13 +607,13 @@ void openConfigfile()
|
|||||||
|
|
||||||
/* Open dash.conf with the associated application */
|
/* Open dash.conf with the associated application */
|
||||||
if (fs::exists(pathConfig)) {
|
if (fs::exists(pathConfig)) {
|
||||||
bool res = QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig)));
|
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
// Workaround for macOS-specific behavior; see #15409.
|
// Workaround for macOS-specific behavior; see #15409.
|
||||||
if (!res) {
|
if (!QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig)))) {
|
||||||
res = QProcess::startDetached("/usr/bin/open", QStringList{"-t", boostPathToQString(pathConfig)});
|
#ifdef Q_OS_MAC
|
||||||
}
|
QProcess::startDetached("/usr/bin/open", QStringList{"-t", boostPathToQString(pathConfig)});
|
||||||
#endif
|
#endif
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user