Don't delete profiles and ports on update

Authored by nicolasfella on May 6 2019, 5:09 PM.

Description

Don't delete profiles and ports on update

Summary:
When a profile/port is updated the old code deletes all objects and creates new ones. This breaks connections set on the objects.

In Card the return type of ports() is changed from QVector<Port*> to QVector<CardPort*>. This probably breaks API/ABI, but the only current user (KDE Connect) is not affected and we don't give ABI guarantees.

Reviewers: drosca

Reviewed By: drosca

Subscribers: apol, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D20871

Details

Committed
nicolasfellaMay 6 2019, 5:09 PM
Reviewer
drosca
Differential Revision
D20871: Don't delete profiles and ports on update
Parents
R994:979c01b2d6ca: Use override
Branches
Unknown
Tags
Unknown