Fix directory creation error handling

When a directory is created successfully for saving attachments, do not error.

Resolves #13504.
This commit is contained in:
Raman Gupta authored and Jonathan White committed 2026-07-08 12:50:49 -04:00
1 parent 91461e1f86
commit be192d422b
1 file changed
+1 -1
+1 -1
View File
@@ -358,7 +358,7 @@ void EntryAttachmentsWidget::saveSelectedAttachments()
QDir saveDir(saveDirPath);
if (!saveDir.exists()) {
if (saveDir.mkpath(saveDir.absolutePath())) {
if (!saveDir.mkpath(saveDir.absolutePath())) {
errorOccurred(tr("Unable to create directory:\n%1").arg(saveDir.absolutePath()));
return;
}