Fix automatic reload of files saved with QSaveFile

Authored by progwolff on Sep 7 2017, 11:18 AM.

Description

Fix automatic reload of files saved with QSaveFile

Summary:
Files saved with QSaveFile don't get dirty. They are deleted and replaced.
Thus, inotify and KDirWatch don't emit a "dirty" signal (which is the correct behaviour).
Listening for the "created" signal of KDirWatch allows us to get notified on replaced files.

BUG: 384185

Test Plan:
Opened a markdown document in Okular.
Edited and saved the document with Kate.
The file is reloaded in Okular as expected.

Reviewers: aacid

Reviewed By: aacid

Subscribers: sander, rkflx, Okular

Tags: Okular

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

Details

Committed
aacidSep 7 2017, 7:49 PM
Reviewer
aacid
Differential Revision
D7671: Fix automatic reload of files saved with QSaveFile
Parents
R223:075b8153af55: Search for Kirigami
Branches
Unknown
Tags
Unknown