From c0d28c8f5b150a03de75155a0961b3d9b2695ed6 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 19 Aug 2025 11:27:45 +0100 Subject: [PATCH] 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. --- src/qt/guiutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index adf54953675..7bafb3db853 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -435,7 +435,7 @@ void handleCloseWindowShortcut(QWidget* w) void openDebugLogfile() { - fs::path pathDebug = gArgs.GetDataDirNet() / "debug.log"; + fs::path pathDebug = LogInstance().m_file_path; /* Open debug.log with the associated application */ if (fs::exists(pathDebug))