From 133f7808b7556777fbbb306b932cbfa476b9e3dc Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com> Date: Mon, 8 Nov 2021 20:20:39 +0300 Subject: [PATCH] trivial: fix unused variable treat-warning-as-error in guiutil --- src/qt/guiutil.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 8489971235..60d9ba1b58 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -607,13 +607,13 @@ void openConfigfile() /* Open dash.conf with the associated application */ 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)}); - } + if (!QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig)))) { +#ifdef Q_OS_MAC + QProcess::startDetached("/usr/bin/open", QStringList{"-t", boostPathToQString(pathConfig)}); #endif + return; + } } }