OSDN Git Service

Fix handling of return status of PDFPreview.setupPreview in BrowserWindow.handleLocal...
authorNick Clarke <memorius@gmail.com>
Mon, 19 Jul 2010 23:50:31 +0000 (11:50 +1200)
committerRandy Baumgarte <randy@fbn.cx>
Fri, 23 Jul 2010 09:31:06 +0000 (05:31 -0400)
src/cx/fbn/nevernote/gui/BrowserWindow.java

index e094038..898d978 100644 (file)
@@ -1650,8 +1650,10 @@ public class BrowserWindow extends QWidget {
                        file.close();\r
 \r
                                PDFPreview pdfPreview = new PDFPreview();\r
-                               if (pdfPreview.setupPreview(Global.currentDir+"res/"+fileName, "pdf",0));\r
+                               if (pdfPreview.setupPreview(Global.currentDir+"res/"+fileName, "pdf",0)) {\r
+                                       // NFC TODO: should this be a 'file://' url like the ones above?\r
                                        imageURL = file.fileName() + ".png";\r
+                               }\r
                        }\r
                                                \r
                        logger.log(logger.EXTREME, "Generating link tags");\r