Skip to content

fix: add missing errorText label in ChangeBorgPassphraseWindow (#2372)#2479

Open
Denay2468 wants to merge 2 commits intoborgbase:masterfrom
Denay2468:fix/change-passphrase-error-text-2372
Open

fix: add missing errorText label in ChangeBorgPassphraseWindow (#2372)#2479
Denay2468 wants to merge 2 commits intoborgbase:masterfrom
Denay2468:fix/change-passphrase-error-text-2372

Conversation

@Denay2468
Copy link
Copy Markdown
Contributor

@Denay2468 Denay2468 commented Mar 26, 2026

The _set_status method referenced self.errorText but this widget was never created in init, causing an AttributeError when the change passphrase attempt failed.
Added errorText as a QLabel programmatically in init, styled in red and added to the form layout.
Related Issue:
Fixes #2372
Motivation and Context:
When a user’s passphrase change fails, Vorta crashes instead of showing an error message.
How Has This Been Tested?
∙ Ran existing unit tests: uv run pytest tests/unit/test_repo.py -v -k "passphrase" — all 3 passed
∙ Unable to fully test on Windows due to no Borg binary, but the fix is straightforward
Types of changes:
∙ ✅ Bug fix
Checklist:
∙ ✅ I have read the CONTRIBUTING guide
∙ ✅ My code follows the code style of this project
∙ ✅ All new and existing tests passed

@Denay2468 Denay2468 changed the title fix: add missing errorText label in ChangeBorgPassphraseWindow fix: add missing errorText label in ChangeBorgPassphraseWindow (#2372) Mar 26, 2026
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.

Volta lost passphrase - missing error message for change password

2 participants