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:
1 file changed
+1
-1
+1
-1
@@ -435,7 +435,7 @@ void handleCloseWindowShortcut(QWidget* w)
|
|||||||
|
|
||||||
void openDebugLogfile()
|
void openDebugLogfile()
|
||||||
{
|
{
|
||||||
fs::path pathDebug = gArgs.GetDataDirNet() / "debug.log";
|
fs::path pathDebug = LogInstance().m_file_path;
|
||||||
|
|
||||||
/* Open debug.log with the associated application */
|
/* Open debug.log with the associated application */
|
||||||
if (fs::exists(pathDebug))
|
if (fs::exists(pathDebug))
|
||||||
|
|||||||
Reference in new issue
Block a user