From fbc455b3da26ab47ed0857b9f6c924f14a831990 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 13 Jan 2026 17:45:27 +0100 Subject: [PATCH] fix(debugArchive): ensure proper path for destination file name on windows, it is necessary to convert the URL for the destination target for debug archive to a proper local file hopefully does not break macOS Signed-off-by: Matthieu Gallien --- src/gui/generalsettings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index d123ba0f2c1af..3dfbf927148fe 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -699,7 +699,7 @@ void GeneralSettings::slotCreateDebugArchive() tr("Zip Archives") + " (*.zip)" ); - if (destination.path().isEmpty()) { + if (!destination.isLocalFile() || destination.toLocalFile().isEmpty()) { return; } @@ -719,11 +719,11 @@ void GeneralSettings::slotCreateDebugArchive() } #endif - if (createDebugArchive(destination.path())) { + if (createDebugArchive(destination.toLocalFile())) { QMessageBox::information( this, tr("Debug Archive Created"), - tr("Redact information deemed sensitive before sharing! Debug archive created at %1").arg(destination.toString()) + tr("Redact information deemed sensitive before sharing! Debug archive created at %1").arg(destination.toLocalFile()) ); } }