[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.4/kdemultimedia/juk
From:       Michael Pyne <michael.pyne () kdemail ! net>
Date:       2005-09-06 22:12:36
Message-ID: 1126044756.858115.29450.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 457901 by mpyne:

Backport fix for bug 112118 (JuK Google cover search doesn't work anymore) to KDE 3.4.

Sorry about forgetting to do so earlier.

BUG:112118


 M  +13 -1     googlefetcher.cpp  


--- branches/KDE/3.4/kdemultimedia/juk/googlefetcher.cpp #457900:457901
@@ -18,6 +18,8 @@
 #include <dom/dom_exception.h>
 #include <dom/dom2_traversal.h>
 
+#include <khtml_part.h>
+
 #include <kapplication.h>
 #include <kstatusbar.h>
 #include <kmainwindow.h>
@@ -85,8 +87,18 @@
     // choice if we're going to screen-scrape Google.
     try {
 
-    DOM::HTMLDocument search;
+    KHTMLPart part;
+
+    // Create empty document.
+
+    part.begin();
+    part.end();
+
+    DOM::HTMLDocument search = part.htmlDocument();
     search.setAsync(false); // Grab the document before proceeding.
+
+    kdDebug(65432) << "Performing Google Search: " << url << endl;
+
     search.load(url.url());
 
     DOM::HTMLElement body = search.body();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic