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))