As discussed in D11624, I'm fixing the issue with not closing bookmark menu.
Details
Details
- Reviewers
martinkostolny rade - Group Reviewers
Krusader - Commits
- R167:61a46a181598: Fixed the issue with jump back actions not closing bookmark menu when triggered
Test jump back actions in bookmark menu triggered by mouse, keyboard, search.
Diff Detail
Diff Detail
- Repository
- R167 Krusader
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Works nice, thanks!
Please see my code comment.
krusader/BookMan/krbookmarkhandler.cpp | ||
---|---|---|
488 | There is a possibility to use a UniqueConnection instead of disconnect & connect. But we would need to create a standard method for closing the popup (named e.g. KrBookmarkHandler::slotCloseBookmarkPopup) instead of slotTriggered lambda. Maybe it could also be then re-used in KrBookmarkHandler::slotActivated. Then we could just call here this: connect(action, &QAction::triggered, this, &KrBookmarkHandler::slotCloseBookmarkPopup, Qt::UniqueConnection); But it's just a suggestion. |
Comment Actions
Thanks for review and testing!
krusader/BookMan/krbookmarkhandler.cpp | ||
---|---|---|
488 | It's a great suggestion. I think I'll do this as a part of CONNECT_BM refactoring later. |