Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set button on QMessageBox before changing the text #3346

Merged
merged 1 commit into from
May 27, 2021

Conversation

FlexW
Copy link

@FlexW FlexW commented May 21, 2021

Signed-off-by: Felix Weilbach felix.weilbach@nextcloud.com

Copy link
Collaborator

@mgallien mgallien left a comment

Choose a reason for hiding this comment

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

Please fix the crash as soon as this one is merged. Consider that with the highest priority once support is done. I would really like the possible crash to be fixed

encryptButton->setText(AccountSettings::tr("Encrypt folder"));
e2eeWithVirtualFilesWarningMsgBox.exec();
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is problematic because during that call things could be deleted and that would lead to a crash when the dialog is closed.
I did test by doing that:

  1. Create a folder in root via web browser
  2. Wait for the directory to be synced on Windows VFS
  3. Open Settings
  4. Try to Encrypt the folder
  5. See the new dialog appear
  6. Delete the not-yet encrypted folder via web browser
  7. Wait for the deletion to be synced
  8. Ask to encrypt the folder
  9. Expect a crash

@mgallien
Copy link
Collaborator

/rebase

@github-actions github-actions bot force-pushed the bugfix/e2ee-warning-vfs-dialog branch from 06e4709 to 470ab8a Compare May 26, 2021 15:30
@mgallien
Copy link
Collaborator

/rebase

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
@github-actions github-actions bot force-pushed the bugfix/e2ee-warning-vfs-dialog branch from 470ab8a to 03610cb Compare May 27, 2021 07:39
@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-3346-03610cb7063779eff506018c38cb49fe535da9de-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien merged commit a807263 into master May 27, 2021
@mgallien mgallien deleted the bugfix/e2ee-warning-vfs-dialog branch May 27, 2021 07:45
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.

4 participants