Bugfix: respect user defined configuration file (-conf) when open conf. file from QT settings

This commit is contained in:
Jonas Schnelli 2018-02-20 21:03:50 +11:00
parent 8a98dfeebf
commit a6e6e39a8b
No known key found for this signature in database
GPG key ID: 1EB776BB03C7922D

View file

@ -417,7 +417,7 @@ void openDebugLogfile()
bool openBitcoinConf()
{
boost::filesystem::path pathConfig = GetConfigFile(BITCOIN_CONF_FILENAME);
boost::filesystem::path pathConfig = GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME));
/* Create the file */
boost::filesystem::ofstream configFile(pathConfig, std::ios_base::app);