Fix duplicate and markup displaying failed-save message box
Summary:
When saving of a file fails, two dialogs are displayed. One of them
contains markup tags like <html> and <tt>.
The duplicate message box is caused by KJob's (not disabled) internal
error handling. The markup is displayed because of using strings with
markup as argument for xi18n* functions without special handling.
BUG: 393170
FIXED-IN: 18.04.1
Test Plan:
- Open Gwenview in View or Browse Mode
- File → Save As or Ctrl+⇧+S
- Try to save in a folder you don't have write permission (e.g. Root)
- Error message box should display only once and without markup tags
- Open Gwenview in View or Browse Mode
- Edit a readonly file (e.g. rotate with Ctrl+R)
- Click Save or Save All
- Error message box should display only once and without markup tags
Reviewers: Gwenview, rkflx
Reviewed By: Gwenview, rkflx
Subscribers: rkflx
Differential Revision: https://phabricator.kde.org/D12302