Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 16 by
98310b...@gmail.com: Paper deselected on viewing full text
[fix included]
http://code.google.com/p/gpapers/issues/detail?id=16
What steps will reproduce the problem?
1. Select a paper with a full-text PDF available.
2. Open the PDF.
3. Alt-Tab back to the gpapers window or close the PDF
What is the expected output? What do you see instead?
The paper should remain selected, but it gets unselected within a few
seconds of opening the PDF.
What version of the product are you using? On what operating system?
I am using the latest git revision (7728031bc509) on Ubuntu 12.04.
Please provide any additional information below.
As far as I can tell, this happens because the paper's "read count"
attribute gets updated when a user opens the associated PDF. I'm guessing
that this change causes the list of papers to refresh and clear the
selection.
My patch just manually re-selects the current paper after updating
the "read count". I'm not sure if there's a better way to do this--I'm a
GTK n00b and I'm not particularly well-versed in how the tree widget works.
Attachments:
paper_deselect_fix.patch 976 bytes