-
Notifications
You must be signed in to change notification settings - Fork 669
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 expansion of selective sync tree #10058
Conversation
672dc9a
to
407ff60
Compare
407ff60
to
660fdf6
Compare
We decided to have another look. |
I had another look and I think this new fix is significantly better than my last attempt. Now there is a check to make sure invalid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole patch seems bogus since the isReady flag is always true. Why don't you remove the isReady flag completely? There is one more usage in AccountSettings::slotCustomContextMenuRequested
which can be cleaned up/removed as well.
Might be the better solution overall
355129a
to
6a698f2
Compare
The flag used to be used to query whether the root folder is ready. I just forgot to implement that same functionality for subfolders as well. It has got its use. I updated the patch to perform the check properly for subfolders as well, i.e., it's actually doing something useful now. I think we actually have to review the return values of |
Currently, whenever you use That removes alternative code pathes that actually do the same thing. |
Makes sense, totally agree, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Kudos, SonarCloud Quality Gate passed! |
This commit restores the use of FolderStatusDelegate::data(...) to check whether a folder is ready. The two additions fix two different ways in which the client could crash. Using data(...) makes sure we use the right data structure to look up the ready state for the subfolders. Using folder(...) rightfully causes an index out of range error. This commit partially reverts #10058 and restores a previous version of said PR.
This commit restores the use of FolderStatusDelegate::data(...) to check whether a folder is ready. The two additions fix two different ways in which the client could crash. Using data(...) makes sure we use the right data structure to look up the ready state for the subfolders. Using folder(...) rightfully causes an index out of range error. This commit partially reverts #10058 and restores a previous version of said PR.
Before:
After: