D14661: Force reevaluation of Predicates if interfaces are removed
Stefan BrĂ¼ns
noreply at phabricator.kde.org
Mon Aug 6 21:01:20 BST 2018
bruns created this revision.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: kde-frameworks-devel.
bruns requested review of this revision.
REVISION SUMMARY
If an application wants to show only specicific devices based on predicate
matching, and one of the matching devices loses an interface which is
critical for the Predicate to match, the application has to be notified.
As there is no dedicated signal to notify the application about the
fact a device no longer has e.g. a Solid::StorageAccess iface, signal the
device has been removed, and immediately readd it, as the device may
still be relevant.
Remove the call to updateBackend(udi), as the device backend listens to
the InterfacesRemoved signal itself and updates its property cache.
CCBUG: 394348
REPOSITORY
R245 Solid
BRANCH
test
REVISION DETAIL
https://phabricator.kde.org/D14661
AFFECTED FILES
src/solid/devices/backends/udisks2/udisksmanager.cpp
To: bruns
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180806/16b29572/attachment.html>
More information about the Kde-frameworks-devel
mailing list