<table><tr><td style="">bruns created this revision.<br />bruns added a reviewer: Frameworks.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />bruns requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15892">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Each notification was created as new datasource, and was newer removed<br />
as long as the engine exists. This is especially bad for long living<br />
applets like the device notifier. As there can only be one notification<br />
per device (the last error state, or none), use the UDI as source name<br />
and update the contents.</p>
<p>Also cancel (remove source) an old notifications in case of a successful<br />
setup, otherwise old error messages are shown in the device notifier.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>in Dolphin, select "Release" (context menu) for a mounted CD<br />
-> Notification in device notifier appears "Device can be safely removed"<br />
remount without ejecting<br />
-> Notification message is removed, device shows "mounted" emblem.</p>
<p>Without the change, the message stayed and the device kept the notification<br />
emblem "(!)".</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>device_notifier_qml_fix2</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15892">https://phabricator.kde.org/D15892</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>dataengines/devicenotifications/devicenotificationsengine.cpp<br />
dataengines/devicenotifications/devicenotificationsengine.h<br />
dataengines/devicenotifications/ksolidnotify.cpp<br />
dataengines/devicenotifications/ksolidnotify.h</div></div></div><br /><div><strong>To: </strong>bruns, Frameworks<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>