-
Notifications
You must be signed in to change notification settings - Fork 548
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
Tags fixes #1398
base: master
Are you sure you want to change the base?
Tags fixes #1398
Conversation
c8d4eb5
to
d2d22f7
Compare
Sorry for the delay in looking at this. In general, the user interface here looks good. A couple observations:
|
After renaming a tag from within the Bookmarks dock, the following is printed at the console:
After creating a new tag from within the Bookmarks dock, the following is printed:
Is that indicative of a bug? I don't think I've seen these messages appear before. |
Thanks for a review. The "rename" function in a "New bookmark" dialog needs more work. I'll either fix it or remove it from a context menu and update the PR.
Interesting. I didn't expect double clicking to start tag renaming, so disabling this trigger (or just making it not change the checkbox state) may be a good choice. I'll check this and update the PR.
This warning means that the method is called on a detached editor. It should not harm anything.
Maybe you were using Qt < 6.4. I'll try to find a way to silence these warnings. |
d2d22f7
to
b1cb872
Compare
I've fixed the "New bookmark" dialog issues. |
I've been using Qt 6.4 for quite a while. What I meant is that I haven't seen this error message prior to this PR. I'll see how things look with your updates. |
I think, the warning (and possible use after free) is fixed now. No warning under Ubuntu 24.04, but it was not tested under Windows/MacOS. |
That sounds good, and should make the code easier to review. |
Avoid leaking taglist menu each time it is shown Avoid leaking QDialog each time it is shown
Support tag renaming in all 3 places: new bookmark dialog, bookmark tags dialog and tag selection list in a bookmarks dock. Immediately update tags/bookmarks everywhere when tag name/color is changed. Prevent renaming "Untagged" tag and accidental creation of duplicate tags by renaming.
b9a4105
to
34d5cb0
Compare
Make it possible to edit tag name inline both in the "Bookmarks" dock and "Edit tags" popup dialog window.
Update tag list in the "Bookmarks" dock when tags are changed (added, deleted, renamed, changed color) in the "Edit tags" popup dialog window.
Refuse to create duplicate tags by renaming.
Refuse to edit "Untagged" tag name.
Fix small memory leaks, spotted while implementing this fixes.