[okular] [Bug 437774] Document sometimes reloads after saving annotations

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Mon Jun 7 19:12:28 BST 2021


https://bugs.kde.org/show_bug.cgi?id=437774

--- Comment #4 from pbs3141 at googlemail.com ---
Just took a quick glance at part.cpp:

    // Stop watching for changes while we write the new file (useful when
    // overwriting)
    if (url().isLocalFile())
        unsetFileToWatch();

    KJobWidgets::setWindow(copyJob, widget());
    if (!copyJob->exec()) {
        KMessageBox::information(...);

        // Restore watcher
        if (url().isLocalFile())
            setFileToWatch(localFilePath());

        return false;
    }

It looks pretty foolproof, but could there be a race condition in here? Maybe
some caches don't get written out immediately?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list