From: Niki Roo Date: Thu, 19 Sep 2019 11:24:20 +0000 (+0200) Subject: small code cleanup X-Git-Tag: fanfix-3.0.0~5^2~3 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=4606c850ef0bb0b29b4891d6a4a462aeff42830e;p=fanfix.git small code cleanup --- 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;