From: Niki Roo Date: Sat, 25 Apr 2020 19:26:18 +0000 (+0200) Subject: do not reloadData on rename X-Git-Tag: fanfix-swing-1.0.0~30 X-Git-Url: http://git.nikiroo.be/?a=commitdiff_plain;h=9570918f08409a7c432a9d88d784101a3aa0d4e2;p=fanfix-swing.git do not reloadData on rename --- diff --git a/src/be/nikiroo/fanfix_swing/gui/book/BookPopup.java b/src/be/nikiroo/fanfix_swing/gui/book/BookPopup.java index 3110e006..d6499385 100644 --- a/src/be/nikiroo/fanfix_swing/gui/book/BookPopup.java +++ b/src/be/nikiroo/fanfix_swing/gui/book/BookPopup.java @@ -480,7 +480,9 @@ public class BookPopup extends JPopupMenu { // simple fireElementChanged is not // enough, we need to clear the whole cache (for // BrowserPanel for instance) - informer.invalidateCache(); + if (what != ChangeAction.TITLE) { + informer.invalidateCache(); + } // But we ALSO fire those, because they appear // before the whole refresh... @@ -492,7 +494,7 @@ public class BookPopup extends JPopupMenu { // Sources/Authors(/Tags?) list // Even if problems occurred, still invalidate - // the cache + // the cache above get(); } catch (Exception e) { UiHelper.error(BookPopup.this.getParent(),