Author: tille
Date: 2012-11-08 12:59:41 +0000 (Thu, 08 Nov 2012)
New Revision: 12517

Added:
   trunk/packages/babraham/fastqc/trunk/debian/patches/fix-help-call.patch
Modified:
   trunk/packages/babraham/fastqc/trunk/debian/patches/series
Log:
Fix broken help menu issue


Added: trunk/packages/babraham/fastqc/trunk/debian/patches/fix-help-call.patch
===================================================================
--- trunk/packages/babraham/fastqc/trunk/debian/patches/fix-help-call.patch     
                        (rev 0)
+++ trunk/packages/babraham/fastqc/trunk/debian/patches/fix-help-call.patch     
2012-11-08 12:59:41 UTC (rev 12517)
@@ -0,0 +1,18 @@
+From: Andreas Tille <[email protected]>
+Subject: The original way to open Help text ends up in an exception
+ Setting the explicite file name as well as avoiding the call to
+   ClassLoader.getSystemResource
+ helps fixing this.  Specifically the later is important, see
+   https://lists.debian.org/debian-med/2012/11/msg00073.html
+
+--- a/uk/ac/babraham/FastQC/FastQCMenuBar.java
++++ b/uk/ac/babraham/FastQC/FastQCMenuBar.java
+@@ -132,7 +132,7 @@ public class FastQCMenuBar extends JMenu
+               }
+               else if (command.equals("help_contents")) {
+                       try {
+-                              new HelpDialog(application,new 
File(URLDecoder.decode(ClassLoader.getSystemResource("Help").getFile(),"UTF-8")));
++                              new HelpDialog(application,new 
File(URLDecoder.decode("/usr/share/fastqc/Help","UTF-8")));
+                       } 
+                       catch (UnsupportedEncodingException e1) {
+                               e1.printStackTrace();

Modified: trunk/packages/babraham/fastqc/trunk/debian/patches/series
===================================================================
--- trunk/packages/babraham/fastqc/trunk/debian/patches/series  2012-11-08 
10:28:43 UTC (rev 12516)
+++ trunk/packages/babraham/fastqc/trunk/debian/patches/series  2012-11-08 
12:59:41 UTC (rev 12517)
@@ -1,2 +1,3 @@
 Makefile.patch
 fastqc.patch
+fix-help-call.patch


_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to