mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-27 04:16:45 -08:00
Fix directory creation error handling
When a directory is created successfully for saving attachments, do not error. Resolves #13504.
This commit is contained in:
1 parent
91461e1f86
commit
be192d422b
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user