small code cleanup
authorNiki Roo <niki@nikiroo.be>
Thu, 19 Sep 2019 11:24:20 +0000 (13:24 +0200)
committerNiki Roo <niki@nikiroo.be>
Thu, 19 Sep 2019 11:24:20 +0000 (13:24 +0200)
src/be/nikiroo/fanfix/reader/ui/GuiReaderMainPanel.java
src/be/nikiroo/fanfix/reader/ui/GuiReaderViewerPanel.java

index 7caa243c411ca4bba0f4bf2c0dbbedd7368f8e07..bae2742733b474c1f81e3c734a3cebb1e503d84d 100644 (file)
@@ -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 = "";
                        }
 
index 11f1d3870fdf1d6d4f81d9e4c7742d07991f06c5..4cc10b4dc54099a4511d5b06f207dc32148ee3f6 100644 (file)
@@ -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;