OSDN Git Service

Corrected attachment problem accidentally introduced by adding support for files...
authorRandy Baumgarte <randy@fbn.cx>
Wed, 28 Sep 2011 12:14:01 +0000 (08:14 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Wed, 28 Sep 2011 12:14:01 +0000 (08:14 -0400)
src/cx/fbn/nevernote/gui/BrowserWindow.java

index 6c44862..2425fbb 100644 (file)
@@ -2410,9 +2410,10 @@ public class BrowserWindow extends QWidget {
                        buffer.append("<a en-tag=\"en-media\" guid=\"" +newRes.getGuid()+"\" ");\r
                        buffer.append(" onContextMenu=\"window.jambi.imageContextMenu(&apos;")\r
                      .append(Global.getFileManager().getResDirPath(fileName))\r
-                     .append("&apos;);\" ");                   buffer.append("type=\"" + mimeType + "\" href=\"nnres://" + fileName +"\" hash=\""+Global.byteArrayToHexString(newRes.getData().getBodyHash()) +"\" >");\r
-                       buffer.append("<img src='\"" + imageURL + "\" title=\"" +new QUrl(newRes.getAttributes().getFileName()).toEncoded().toString());\r
-                       buffer.append("\"'></img>");\r
+                     .append("&apos;);\" ");                   \r
+                       buffer.append("type=\"" + mimeType + "\" href=\"nnres://" + fileName +"\" hash=\""+Global.byteArrayToHexString(newRes.getData().getBodyHash()) +"\" >");\r
+                       buffer.append("<img src=\"" + imageURL + "\" title=\"" +newRes.getAttributes().getFileName());\r
+                       buffer.append("\"></img>");\r
                        buffer.append("</a>");\r
                        browser.page().mainFrame().evaluateJavaScript(\r
                                        script_start + buffer.toString() + script_end);\r