Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
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;
}