Skip to content

Commit a3c918c

Browse files
committed
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 <matthieu.gallien@nextcloud.com>
1 parent e213c6a commit a3c918c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/gui/generalsettings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ void GeneralSettings::slotCreateDebugArchive()
699699
tr("Zip Archives") + " (*.zip)"
700700
);
701701

702-
if (destination.path().isEmpty()) {
702+
if (!destination.isLocalFile() || destination.toLocalFile().isEmpty()) {
703703
return;
704704
}
705705

@@ -719,11 +719,11 @@ void GeneralSettings::slotCreateDebugArchive()
719719
}
720720
#endif
721721

722-
if (createDebugArchive(destination.path())) {
722+
if (createDebugArchive(destination.toLocalFile())) {
723723
QMessageBox::information(
724724
this,
725725
tr("Debug Archive Created"),
726-
tr("Redact information deemed sensitive before sharing! Debug archive created at %1").arg(destination.toString())
726+
tr("Redact information deemed sensitive before sharing! Debug archive created at %1").arg(destination.toLocalFile())
727727
);
728728
}
729729
}

0 commit comments

Comments
 (0)