From 34eb62fc14c1f4db29e65ceb6b190811380aba7e Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sun, 6 Aug 2017 15:45:05 +0200 Subject: [PATCH] Fix bug when moving an unopened book in GUI --- src/be/nikiroo/fanfix/reader/GuiReader.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/be/nikiroo/fanfix/reader/GuiReader.java b/src/be/nikiroo/fanfix/reader/GuiReader.java index 0faea6e..2f1b339 100644 --- a/src/be/nikiroo/fanfix/reader/GuiReader.java +++ b/src/be/nikiroo/fanfix/reader/GuiReader.java @@ -226,7 +226,9 @@ class GuiReader extends BasicReader { void changeType(String luid, String newSource) { try { - localLibrary.changeSource(luid, newSource, null); + if (localLibrary.getInfo(luid) != null) { + localLibrary.changeSource(luid, newSource, null); + } getLibrary().changeSource(luid, newSource, null); } catch (IOException e) { Instance.syserr(e); -- 2.27.0