Avoid checking if the right-clicked folder is in the "Places", and always add the "Add to Places" action to the context menu

Review Request #126904 - Created Jan. 27, 2016 and submitted

Frank Reininghaus

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.

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.

Thomas Lübking
Frank Reininghaus
Emmanuel Pescosta
Frank Reininghaus
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit d094c8ffe64d226d5afef50693a3bb04b360ed7b by Frank Reininghaus to branch master.