https://bugs.kde.org/show_bug.cgi?id=394348

--- Comment #33 from Stefan Brüns <stefan.bru...@rwth-aachen.de> ---
Git commit 61b2b173e8d68623a3681fd27c0ad0348bf41191 by Stefan Brüns.
Committed on 24/09/2018 at 13:27.
Pushed by bruns into branch 'master'.

[Device Notifier] Avoid accessing attributes of stale UDIs

Summary:
When a Solid device is removed (e.g. a CD is ejected) the notifier tries
to read the attributes although the Source for the UDI has just vanished.

Fixes several QML error messages, i.e. "TypeError: Cannot read property
'...' of undefined" and "Unable to assign [undefined] to QString".

Apparently these errors also have the effect of items showing outdated
state, i.e. optical media still being shown after ejecting it.

Test Plan:
1. insert optical medium
2. eject
Without the changes, the item was stuck
Now, the item is removed as soon as the medium is ejected

Also, no more errors are logged for the devicenotifier

Reviewers: #frameworks, broulik

Reviewed By: broulik

Subscribers: ngraham, plasma-devel

Tags: #plasma

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

M  +6    -5   
applets/devicenotifier/package/contents/ui/FullRepresentation.qml
M  +8    -0    applets/devicenotifier/package/contents/ui/devicenotifier.qml

https://commits.kde.org/plasma-workspace/61b2b173e8d68623a3681fd27c0ad0348bf41191

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to