From e0fa20fefa6074105e8cb55aa7de4785b90dd20c Mon Sep 17 00:00:00 2001 From: Niki Date: Wed, 10 Apr 2019 13:56:11 +0200 Subject: [PATCH] fix ui focus issue --- src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java b/src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java index ffbcda3..cd98fac 100644 --- a/src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java +++ b/src/be/nikiroo/fanfix/reader/ui/GuiReaderGroup.java @@ -288,7 +288,7 @@ public class GuiReaderGroup extends JPanel { books.get(previousIndex).setSelected(false); } - if (index >= 0) { + if (index >= 0 && !books.isEmpty()) { books.get(index).setSelected(true); } } -- 2.27.0