KFilePlacesModel: Only create places item for known devices
Otherwise we'll create entries for devices that aren't there, leading to broken entries. It would also bluntly overwrite an existing device entry with a broken one further down.
While at it, mutate the container (erase) only after the value has been used.
My Places panel doesn’t show a bunch of empty entries anymore. I can still hide the entry and it stays hidden when I restart the app.
Before:
After:
Edited by Kai Uwe Broulik