Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix entry preview not updated properly #2125

Merged
merged 1 commit into from
Oct 7, 2016
Merged

Fix entry preview not updated properly #2125

merged 1 commit into from
Oct 7, 2016

Conversation

chriba
Copy link
Contributor

@chriba chriba commented Oct 5, 2016

Fixes: #2105.

Steps to reproduce:

  1. have at least 2 entries
  2. open the entry editor and close it
    • the preview will be rendered correctly
  3. select the other entry
    • the preview will be rendered correctly
  4. select the first entry (the one you opened the editor with)
  5. the preview will not be updated

The problem is that the editor variable doesn't get cleared when the editor closes, thus the bottom component in the main table doesn't get updated if that entry is the last one which had the editor open.

@tschechlovdev tschechlovdev added status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers and removed stupro-ready-for-internal-review labels Oct 5, 2016
@lenhard
Copy link
Member

lenhard commented Oct 7, 2016

I have tested this locally and can reproduce that your changes fix the bug. Since it is only about five lines, I think it is save if I merge this even without a second review.

Thanks for your contribution!

@lenhard lenhard merged commit 03bc4a3 into JabRef:master Oct 7, 2016
@chriba chriba deleted the fixPreviewUpdate branch October 7, 2016 15:35
Siedlerchr added a commit that referenced this pull request Oct 9, 2016
* upstream/master: (102 commits)
  Removed unused test code (#2140)
  Fix main table bug when creating a duplicate (#2135)
  Remove explicit author and add SPDX-License-Identifier
  Remove GPL from README.md and CONTRIBUTING.md
  fix preview update (#2125)
  Remove some UnicodeToLatex uses (#2132)
  Fix mixup in french/farsi localization
  FetcherException should extend JabRefException
  Fix exception when opening preference dialog (#2127)
  Unify ParserException and ParseException (#2124)
  Small refactoring in Importer package (#2053)
  Implement Datepicker "none"-button (#2122)
  revert change from 816d30c
  Change title/tooltip of source panel in biblatex mode (#2120)
  Refactoring: completey typed metadata and add detailed travis output (#2112)
  RTFchars fix (#2097)
  Fix NPE in Medline fetcher on missing ISSN (#2113)
  Ctrl-s parsing error message (#2114)
  Fix bad web search error messages (#2034)
  parse error freeze (#2106)
  ...

# Conflicts:
#	src/main/java/net/sf/jabref/collab/FileUpdateMonitor.java
#	src/main/java/net/sf/jabref/gui/externalfiles/DownloadExternalFile.java
#	src/main/java/net/sf/jabref/gui/externalfiles/DroppedFileHandler.java
#	src/main/java/net/sf/jabref/gui/externalfiles/MoveFileAction.java
#	src/main/java/net/sf/jabref/logic/cleanup/RenamePdfCleanup.java
#	src/main/java/net/sf/jabref/logic/exporter/FileSaveSession.java
#	src/main/java/net/sf/jabref/logic/util/io/FileUtil.java
#	src/main/java/net/sf/jabref/preferences/JabRefPreferences.java
@obraliar
Copy link
Contributor

Since this commit there were problems with the field focus.
Steps to reproduce:

  • Create a new database
  • Create a new entry
  • Change one field like author
  • Click on another field like title

--> The title field does not request the focus as before.

(discovered using git bisect)

@chriba
Copy link
Contributor Author

chriba commented Oct 11, 2016

Bug mentioned by @obraliar is fixed by #2138.

zesaro pushed a commit to zesaro/jabref that referenced this pull request Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Entry preview not updated properly
5 participants