From 4606c850ef0bb0b29b4891d6a4a462aeff42830e Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Thu, 19 Sep 2019 13:24:20 +0200 Subject: [PATCH] small code cleanup --- src/be/nikiroo/fanfix/reader/ui/GuiReaderMainPanel.java | 3 ++- src/be/nikiroo/fanfix/reader/ui/GuiReaderViewerPanel.java | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/be/nikiroo/fanfix/reader/ui/GuiReaderMainPanel.java b/src/be/nikiroo/fanfix/reader/ui/GuiReaderMainPanel.java index 7caa243..bae2742 100644 --- a/src/be/nikiroo/fanfix/reader/ui/GuiReaderMainPanel.java +++ b/src/be/nikiroo/fanfix/reader/ui/GuiReaderMainPanel.java @@ -517,7 +517,8 @@ class GuiReaderMainPanel extends JPanel { // No data will be handled } - if (clipboard == null || !clipboard.startsWith("http")) { + if (clipboard == null || !(clipboard.startsWith("http://") || // + clipboard.startsWith("https://"))) { clipboard = ""; } diff --git a/src/be/nikiroo/fanfix/reader/ui/GuiReaderViewerPanel.java b/src/be/nikiroo/fanfix/reader/ui/GuiReaderViewerPanel.java index 11f1d38..4cc10b4 100644 --- a/src/be/nikiroo/fanfix/reader/ui/GuiReaderViewerPanel.java +++ b/src/be/nikiroo/fanfix/reader/ui/GuiReaderViewerPanel.java @@ -16,7 +16,6 @@ import javax.swing.JPanel; import javax.swing.JProgressBar; import javax.swing.JScrollPane; import javax.swing.SwingConstants; -import javax.swing.plaf.basic.BasicArrowButton; import be.nikiroo.fanfix.Instance; import be.nikiroo.fanfix.bundles.StringIdGui; -- 2.27.0