Skip to content

Show warning when changing repository with existing backups#2421

Open
Justaanand50 wants to merge 1 commit intoborgbase:masterfrom
Justaanand50:fix/repo-change-warning
Open

Show warning when changing repository with existing backups#2421
Justaanand50 wants to merge 1 commit intoborgbase:masterfrom
Justaanand50:fix/repo-change-warning

Conversation

@Justaanand50
Copy link
Copy Markdown

Added a QMessageBox confirmation dialog when user attempts to change the repository in a profile that already has existing backups. User can confirm or cancel, reverting to the previous repository selection if cancelled.

Description

When a user changes the repository dropdown in a profile that already has existing backups, a warning dialog now appears asking them to confirm the change. If they click No, the dropdown reverts to the previously selected repository.

Related Issue

Fixes #1714

Motivation and Context

Previously there was no warning when changing repositories, which could cause users to accidentally backup to the wrong repository without realizing it. This is especially problematic for users with multiple profiles and repositories.

How Has This Been Tested?

Manually tested by creating a profile with an existing repository and attempting to change it. Confirmed the warning dialog appears correctly and reverts the selection when user clicks No.

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING guide.
  • My code follows the code style of this project.

Fixes borgbase#1714 - Added a QMessageBox confirmation dialog when user
attempts to change the repository in a profile that already has
existing backups. User can confirm or cancel, reverting to the
previous repository selection if cancelled.
@Justaanand50
Copy link
Copy Markdown
Author

Hi! I wanted to follow up on this PR. I'm applying for GSoC 2026 with PSF and this is part of my contribution to Vorta. Would love any feedback or review when you get a chance!

@Justaanand50 Justaanand50 force-pushed the fix/repo-change-warning branch from 95b526c to 86ce762 Compare March 22, 2026 13:47
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.

FR: Warning (or similar) when changing Repository in a preset

1 participant