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.
This commit is contained in:
Hennadii Stepanov
2025-08-19 11:27:45 +01:00
parent be356fc49b
commit c0d28c8f5b

View File

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