Now that we have a places singleton it adds no real overhead.
Details
Details
- Reviewers
elvisangelaccio - Group Reviewers
Dolphin - Commits
- R318:10d8a5731507: [DolphinContextMenu] Restore check for whether place already exists
- Added a place to my places panel, opened context menu, didn't get an "Add to places" entry anymore
Diff Detail
Diff Detail
- Repository
- R318 Dolphin
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
src/dolphincontextmenu.cpp | ||
---|---|---|
463–464 | Const? |
src/dolphincontextmenu.cpp | ||
---|---|---|
466 | I know this is what the old code did, but could you try to use model->match(..., KFilePlacesModel::UrlRole, ...); like you did in commit 652f57d28152491c4 ? |
Comment Actions
- Use QAbstractItemModel::matches
- Add const
The StripTrailingSlash didn't seem to be neccessary