Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.cpp
Show First 20 Lines • Show All 391 Lines • ▼ Show 20 Lines | void openDebugLogfile() { | ||||
/* Open debug.log with the associated application */ | /* Open debug.log with the associated application */ | ||||
if (fs::exists(pathDebug)) { | if (fs::exists(pathDebug)) { | ||||
QDesktopServices::openUrl( | QDesktopServices::openUrl( | ||||
QUrl::fromLocalFile(boostPathToQString(pathDebug))); | QUrl::fromLocalFile(boostPathToQString(pathDebug))); | ||||
} | } | ||||
} | } | ||||
bool openBitcoinConf() { | bool openBitcoinConf() { | ||||
fs::path pathConfig = GetConfigFile(BITCOIN_CONF_FILENAME); | fs::path pathConfig = | ||||
GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME)); | |||||
/* Create the file */ | /* Create the file */ | ||||
fs::ofstream configFile(pathConfig, std::ios_base::app); | fs::ofstream configFile(pathConfig, std::ios_base::app); | ||||
if (!configFile.good()) { | if (!configFile.good()) { | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 600 Lines • Show Last 20 Lines |