File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -748,18 +748,24 @@ void BitcoinGUI::openConfigClicked()
748748 boost::filesystem::path pathConfig = GetConfigFile ();
749749 /* Open gridcoinresearch.conf with the associated application */
750750 bool res = QDesktopServices::openUrl (QUrl::fromLocalFile (QString::fromStdString (pathConfig.string ())));
751- #ifdef Q_OS_WIN
751+
752+ #ifdef Q_OS_WIN
752753 // Workaround for windows specific behaviour
753754 if (!res) {
754755 res = QProcess::startDetached (" C:\\ Windows\\ system32\\ notepad.exe" , QStringList{QString::fromStdString (pathConfig.string ())});
755756 }
756- #endif
757- #ifdef Q_OS_MAC
757+ #endif
758+ #ifdef Q_OS_MAC
758759 // Workaround for macOS-specific behaviour; see https://github.com/bitcoin/bitcoin/issues/15409
759760 if (!res) {
760761 res = QProcess::startDetached (" /usr/bin/open" , QStringList{" -t" , QString::fromStdString (pathConfig.string ())});
761762 }
762- #endif
763+ #endif
764+
765+ if (!res) {
766+ error (" File Association Error" , " Unable to open the config file. Please check your operating system"
767+ " file associations." , true );
768+ }
763769}
764770
765771void BitcoinGUI::researcherClicked ()
You can’t perform that action at this time.
0 commit comments