Skip to content

Commit e117cfe

Browse files
author
MarcoFalke
committed
Merge #12489: Bugfix: respect user defined configuration file (-conf) in QT settings
a6e6e39 Bugfix: respect user defined configuration file (-conf) when open conf. file from QT settings (Jonas Schnelli) Pull request description: Fixes #12488. In master, opening the configuration file from the GUI settings will always open the file "bitcoin.conf" regardless of the `-conf=` settings. This PR makes the GUI settings open configuration file function respect the `-conf` option. Tree-SHA512: fb54cc699b4d2a3947f749fdf5f1a51251ffd67d0f6c6a937a5b80f0ba5a5c1085d0eef190453bbc04696d4d76c2c266de0fe9712e65e4bb36116158b54263d4
2 parents ffc6e48 + a6e6e39 commit e117cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/guiutil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void openDebugLogfile()
417417

418418
bool openBitcoinConf()
419419
{
420-
boost::filesystem::path pathConfig = GetConfigFile(BITCOIN_CONF_FILENAME);
420+
boost::filesystem::path pathConfig = GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME));
421421

422422
/* Create the file */
423423
boost::filesystem::ofstream configFile(pathConfig, std::ios_base::app);

0 commit comments

Comments
 (0)