Ensure book part URLs are local.
authorAkos Polster <akos@pipacs.com>
Wed, 29 Sep 2010 20:15:56 +0000 (22:15 +0200)
committerAkos Polster <akos@pipacs.com>
Wed, 29 Sep 2010 20:15:56 +0000 (22:15 +0200)
bookview.cpp
pkg/changelog

index 3803cee..fbbf608 100644 (file)
@@ -105,7 +105,10 @@ void BookView::loadContent(int index)
     else {
         loaded = false;
         emit partLoadStart(index);
-        load(QUrl(mBook->rootPath() + "/" + contentFile));
+        QUrl u = QUrl::fromLocalFile(QDir(mBook->rootPath()).
+                                     absoluteFilePath(contentFile));
+        qDebug() << "Loading" << u;
+        load(u);
     }
     contentIndex = index;
 }
index bfafc0c..4c9ddad 100644 (file)
@@ -1,6 +1,7 @@
 dorian (0.2.1-1) unstable; urgency=low
 
   * Fix TOC in "The Awakening" (and possibly other Google books) [#6318]
+  * Works on Symbian (far from usable)
 
  -- Akos Polster <akos@pipacs.com>  Thu, 16 Sep 2010 02:00:00 +0200