OSDN Git Service

Fix handling of return status of PDFPreview.setupPreview in BrowserWindow.handleLocal...
[neighbornote/NeighborNote.git] / 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