D7671: Fix automatic reload of files saved with QSaveFile
Julian Wolff
noreply at phabricator.kde.org
Sun Sep 3 09:27:44 UTC 2017
progwolff created this revision.
Restricted Application added a subscriber: Okular.
Restricted Application added a project: Okular.
REVISION SUMMARY
Files saved with QSaveFile don't get dirty. The are deleted and replaced.
Thus, inotify and KDirWatch don't emit a "dirty" signal (wich 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.
REPOSITORY
R223 Okular
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D7671
AFFECTED FILES
part.cpp
To: progwolff, aacid
Cc: #okular, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20170903/46d4000d/attachment.html>
More information about the Okular-devel
mailing list