[PATCH] Fix ISBN AmazonFetcher::doSearch()

Sandor Bodo-Merle sbodomerle at gmail.com
Thu Mar 19 16:08:36 MDT 2009


Without this patch current HEAD will stuck on amazon ISBN search

---
 src/fetch/amazonfetcher.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/fetch/amazonfetcher.cpp b/src/fetch/amazonfetcher.cpp
index b757b82..54f9dbd 100644
--- a/src/fetch/amazonfetcher.cpp
+++ b/src/fetch/amazonfetcher.cpp
@@ -253,11 +253,10 @@ void AmazonFetcher::doSearch() {
             isbn13 = true;
             break;
           }
-          ++it;
         }
         // if we want isbn10, then convert all
         if(!isbn13) {
-          for(QStringList::Iterator it = isbns.begin(); it != isbns.end();
) {
+          for(QStringList::Iterator it = isbns.begin(); it != isbns.end();
++it) {
             if((*it).length() > 12) {
               (*it) = ISBNValidator::isbn10(*it);
               (*it).remove(QLatin1Char('-'));
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://forge.novell.com/pipermail/tellico-users/attachments/20090319/a2021419/attachment.html


More information about the tellico-users mailing list