Review Request 126904: Avoid checking if the right-clicked folder is in the "Places", and always add the "Add to Places" action to the context menu
Emmanuel Pescosta
emmanuelpescosta099 at gmail.com
Thu Jan 28 20:53:25 GMT 2016
> On Jan. 27, 2016, 10:38 a.m., Thomas Lübking wrote:
> > src/dolphincontextmenu.cpp, line 430
> > <https://git.reviewboard.kde.org/r/126904/diff/1/?file=441732#file441732line430>
> >
> > As this will likely feed the places panel as well, it needs to be dynamic?
> >
> > => Could you just operate on a global singleton instance (feeding the panel view as well as used for such queries) instead?
The idea is good but the problem is, that the KItemListController takes over the ownership of the model.
So if we really want a singleton places model, we either have to change the controller implemenation or
we need a proxy object for the places model.
- Emmanuel
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126904/#review91653
-----------------------------------------------------------
On Jan. 27, 2016, 10:39 a.m., Frank Reininghaus wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126904/
> -----------------------------------------------------------
>
> (Updated Jan. 27, 2016, 10:39 a.m.)
>
>
> Review request for Dolphin and Thomas Lübking.
>
>
> Repository: dolphin
>
>
> Description
> -------
>
> This prevents that the setup of the PlacesItemModel queries Solid for the available devices, which can take some time.
>
> Places can be added multiple times now using the context menu, but this has always been possible with drag and drop anyway.
>
> See https://forum.kde.org/viewtopic.php?f=223&t=130617 for a dicsussion on this topic.
>
>
> Diffs
> -----
>
> src/dolphincontextmenu.cpp af283cf
>
> Diff: https://git.reviewboard.kde.org/r/126904/diff/
>
>
> Testing
> -------
>
> The "Add to Places" entry is always enabled now in the context menu. I never observed a noticeable delay when right-clicking folders, but I am confident that this change removes the delay for the users who saw it.
>
>
> Thanks,
>
> Frank Reininghaus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20160128/409a3476/attachment.htm>
More information about the kfm-devel
mailing list