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

Fix share dialog animation for enforced password policy #2551

Merged

Conversation

er-vin
Copy link
Member

@er-vin er-vin commented Oct 14, 2020

Without those changes, the spinner would be displayed forever when adding a new link and hitting cancel on the input box asking for the enforced password.

@camilasan
Copy link
Member

/rebase

Kevin Ottens added 3 commits October 19, 2020 14:33
It turns out the shareDeleted() signal is connected to a function
cleaning up the ShareLinkWidget holding the last shared pointer to the
Share object. Since we use member variables for calling updateFolder()
this would lead to using deleted objects.

Just swap the call and the signal to have everything back in order.

Signed-off-by: Kevin Ottens <[email protected]>
All the other ShareLinkWidgets process that signal (which allows to
display error messages for instance) but not that one for some reason.
That being said it might need to deal with an enforced password
situation.

Signed-off-by: Kevin Ottens <[email protected]>
Otherwise it would spin forever while we know we're not doing any work
anymore since we got a message from the server.

Signed-off-by: Kevin Ottens <[email protected]>
@github-actions github-actions bot force-pushed the fix_share_dialog_animation_for_enforced_password_policy branch from eff33ca to b7ea653 Compare October 19, 2020 14:33
@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-2551-b7ea6530c5d3f3a62cdfeea8f4b1a46e671dba96-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.

@er-vin er-vin merged commit 0927b9b into master Oct 19, 2020
@er-vin er-vin deleted the fix_share_dialog_animation_for_enforced_password_policy branch October 19, 2020 15:09
@er-vin
Copy link
Member Author

er-vin commented Oct 19, 2020

/backport to stable-3.0

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