#1010765 atril: Doesn't add index on reloading when document contained no index before

Package:
atril
Source:
atril
Description:
MATE document viewer
Submitter:
Andreas Schmidt
Date:
2022-05-09 16:30:03 UTC
Severity:
normal
#1010765#5
Date:
2022-05-09 16:26:44 UTC
From:
To:
Dear Maintainer,

I've been working on a document with LaTeX, having opened the document with
"atril doc.pdf &>/dev/null&". The document was properly reloaded each time
another LaTeX run finished.

There was a problem with an empty page that wasn't completely empty for some
reason when I needed to print the document. So I compiled the document with
LaTeX and then used pdftk to replace the wrong page with a really empty one.
Naturally, this messed up the index, so using the side pane to navigate the
document via the tree structure didn't work -- there were just the thumbnails.

Eventually, I've fixed the problem and got a working document with the correct
empty page after running LaTeX again. However, even after hitting "Reload",
atril wouldn't show the index and still offered me just the thumbnails. After
closing and restarting atril, the index *was* working correctly again -- so
this wasn't caused by a buggy document.

It would be nice if the index was not only reloaded along with the document, or
discarded if the reloaded document doesn't have one, but if an index was also
added to the view if one was added to a document that didn't contain one
before. Could you do that, please?