Add a button to open the config file in a text editor
This commit is contained in:
@@ -478,6 +478,22 @@ void openDebugLogfile()
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathDebug)));
|
||||
}
|
||||
|
||||
bool openBitcoinConf()
|
||||
{
|
||||
boost::filesystem::path pathConfig = GetConfigFile(BITCOIN_CONF_FILENAME);
|
||||
|
||||
/* Create the file */
|
||||
boost::filesystem::ofstream configFile(pathConfig, std::ios_base::app);
|
||||
|
||||
if (!configFile.good())
|
||||
return false;
|
||||
|
||||
configFile.close();
|
||||
|
||||
/* Open bitcoin.conf with the associated application */
|
||||
return QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig)));
|
||||
}
|
||||
|
||||
void SubstituteFonts(const QString& language)
|
||||
{
|
||||
#if defined(Q_OS_MAC)
|
||||
|
||||
Reference in New Issue
Block a user