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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/dataengines/dict
From:       Christian Loose <christian.loose () hamburg ! de>
Date:       2009-03-20 22:30:44
Message-ID: 1237588244.887521.4036.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 942064 by cloose:

Fix 'list-dictionaries' output of dictionary data engine

REVIEWED: http://reviewboard.kde.org/r/375/



 M  +7 -2      dictengine.cpp  


--- trunk/KDE/kdebase/workspace/plasma/dataengines/dict/dictengine.cpp #942063:942064
@@ -153,9 +153,14 @@
             break;
         }
 
-        if (!curr.startsWith('-')) {
+        // ignore status code and empty lines
+        if (curr.startsWith("250") || curr.startsWith("110") || curr.isEmpty()) {
+            continue;
+        }
+
+        if (!curr.startsWith('-') && !curr.startsWith('.')) {
             curr = curr.trimmed();
-            tmp1 = curr.section(' ', 0, 1);
+            tmp1 = curr.section(' ', 0, 0);
             tmp2 = curr.section(' ', 1);
   //          theHash.insert(tmp1, tmp2);
             //kDebug() << tmp1 + "  " + tmp2;
[prev in list] [next in list] [prev in thread] [next in thread] 

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