Skip to content

Commit c0d28c8

Browse files
committed
qt: Fix compatibility with -debuglogfile command-line option
This change avoids hardcoding the "debug.log" filename, ensuring compatibility with custom filenames provided via the `-debuglogfile` command-line option.
1 parent be356fc commit c0d28c8

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
@@ -435,7 +435,7 @@ void handleCloseWindowShortcut(QWidget* w)
435435

436436
void openDebugLogfile()
437437
{
438-
fs::path pathDebug = gArgs.GetDataDirNet() / "debug.log";
438+
fs::path pathDebug = LogInstance().m_file_path;
439439

440440
/* Open debug.log with the associated application */
441441
if (fs::exists(pathDebug))

0 commit comments

Comments
 (0)