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

List:       kde-bugs-dist
Subject:    [Bug 96450] When google suggests a spelling change,
From:       Nathan Toone <nathan () toonetown ! com>
Date:       2005-01-15 22:56:22
Message-ID: 20050115225622.21484.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=96450         
nathan toonetown com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From nathan toonetown com  2005-01-15 23:56 -------
CVS commit by toone: 

Fix for parsing of google results when google suggests a spelling change.

BUG:96450


  M +3 -3      googlefetcher.cpp   1.14


--- kdemultimedia/juk/googlefetcher.cpp  #1.13:1.14
 @ -85,11 +85,11  @ void GoogleFetcher::slotLoadImageURLs(Go
     DOM::NodeList topLevelNodes = body.childNodes();
 
-    // On google results, if the fifth (0-based) node is a "Font" node, 
-    // then there are results.  Otherwise, there are no results.
+    // On google results, if the fifth (0-based) node is a "Script" node, 
+    // then there are no results.  Otherwise, there are results.
 
     DOM::Node fourthNode = topLevelNodes.item(4);
 
     if(topLevelNodes.length() <= 5 ||
-       topLevelNodes.item(4).nodeName().string() != "font")
+       topLevelNodes.item(4).nodeName().string() == "script")
     {
         emit signalNewSearch(m_imageList);
[prev in list] [next in list] [prev in thread] [next in thread] 

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