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()
748
748
boost::filesystem::path pathConfig = GetConfigFile ();
749
749
/* Open gridcoinresearch.conf with the associated application */
750
750
bool res = QDesktopServices::openUrl (QUrl::fromLocalFile (QString::fromStdString (pathConfig.string ())));
751
- #ifdef Q_OS_WIN
751
+
752
+ #ifdef Q_OS_WIN
752
753
// Workaround for windows specific behaviour
753
754
if (!res) {
754
755
res = QProcess::startDetached (" C:\\ Windows\\ system32\\ notepad.exe" , QStringList{QString::fromStdString (pathConfig.string ())});
755
756
}
756
- #endif
757
- #ifdef Q_OS_MAC
757
+ #endif
758
+ #ifdef Q_OS_MAC
758
759
// Workaround for macOS-specific behaviour; see https://github.com/bitcoin/bitcoin/issues/15409
759
760
if (!res) {
760
761
res = QProcess::startDetached (" /usr/bin/open" , QStringList{" -t" , QString::fromStdString (pathConfig.string ())});
761
762
}
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
+ }
763
769
}
764
770
765
771
void BitcoinGUI::researcherClicked ()
You can’t perform that action at this time.
0 commit comments