Skip to content

Fix directory creation error handling#13508

Merged
droidmonkey merged 1 commit into
keepassxreboot:developfrom
rocketraman:issue-13504-attachments-save-new-folder
Jul 8, 2026
Merged

Fix directory creation error handling#13508
droidmonkey merged 1 commit into
keepassxreboot:developfrom
rocketraman:issue-13504-attachments-save-new-folder

Conversation

@rocketraman

Copy link
Copy Markdown
Contributor

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

Fixes (or is at least related to) #13504.

Simply corrects the sense of the QT mkpath return value check

Testing strategy

None, trivial fix.

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

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

Resolves keepassxreboot#13504.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes incorrect error handling when creating the target directory for saving entry attachments in the GUI. This aligns with the reported behavior in #13504 by ensuring a successful QDir::mkpath() call does not incorrectly trigger an error.

Changes:

  • Corrects the QDir::mkpath() return-value check so errors are only raised when directory creation fails.

@droidmonkey

Copy link
Copy Markdown
Member

Oooh logic error, geez good find!

@droidmonkey droidmonkey added this to the v2.8.0 milestone Jul 8, 2026
@droidmonkey
droidmonkey merged commit be192d4 into keepassxreboot:develop Jul 8, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants