Review Request 122928: Don't show error notifications for jobs cancelled by user

David Rosca nowrep at gmail.com
Fri Mar 13 15:19:05 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122928/
-----------------------------------------------------------

(Updated March 13, 2015, 3:19 p.m.)


Review request for Plasma.


Changes
-------

Remove cancelledJobs property + simplify assignment to body property of notification


Repository: plasma-workspace


Description
-------

This is a followup on my yesterday's patch.

It changes value of "error" in applicationjobs dataengine to uint KJob::error and adds a new value "errorText" = QString KJob::errorText.
This change makes it possible for notifications applet to detect job error even when job have empty errorText.

This also changes the behavior that no notification is displayed for jobs cancelled by user (eg. cancelled rename, overwrite, ...).

I think it is also no longer needed to store cancelledJobs property in Jobs.qml, because ERR_USER_CANCELED = KJob::KilledJobError, but that would
need more testing. I can open a new review for that.


Diffs (updated)
-----

  applets/notifications/package/contents/ui/JobDelegate.qml d77290d 
  applets/notifications/package/contents/ui/Jobs.qml e8a4748 
  dataengines/applicationjobs/kuiserverengine.h c03b070 
  dataengines/applicationjobs/kuiserverengine.cpp e0b2ced 
  kuiserver/jobview.h b78ad14 
  kuiserver/jobview.cpp 4c76c5a 

Diff: https://git.reviewboard.kde.org/r/122928/diff/


Testing
-------

Cancelling a file overwrite no longer shows any notification.


Thanks,

David Rosca

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20150313/13b78e2b/attachment.html>


More information about the Plasma-devel mailing list