Give debug archive save location dialog a default location
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 1 Apr 2024 09:54:25 +0000 (17:54 +0800)
committerCamila Ayres <hello@camilasan.com>
Tue, 23 Apr 2024 18:20:49 +0000 (20:20 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/generalsettings.cpp

index 72426bda65d35dcf81bd3b3fb19ec29d879ad803..7598d94376c52bc203626b1f071dd24cf3012ae4 100644 (file)
@@ -498,7 +498,13 @@ void GeneralSettings::slotIgnoreFilesEditor()
 
 void GeneralSettings::slotCreateDebugArchive()
 {
-    const auto filename = QFileDialog::getSaveFileName(this, tr("Create Debug Archive"), QString(), tr("Zip Archives") + " (*.zip)");
+    const auto filename = QFileDialog::getSaveFileName(
+        this,
+        tr("Create Debug Archive"),
+        QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation),
+        tr("Zip Archives") + " (*.zip)"
+    );
+
     if (filename.isEmpty()) {
         return;
     }