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

List:       kde-commits
Subject:    kdeextragear-2/kmldonkey/scripts
From:       Petter E. Stokke <gibreel () gibreel ! net>
Date:       2003-11-09 22:33:20
[Download RAW message or body]

CVS commit by pstokke: 

Use a different strategy for determining if submitting a URL fails, which
might work better with older (and newer) mldonkey cores.

CCMAIL: 67522-done@bugs.kde.org


  M +3 -1      submit.cpp   1.6


--- kdeextragear-2/kmldonkey/scripts/submit.cpp  #1.5:1.6
@@ -49,5 +49,7 @@ void SubmitCallback::callback(const QStr
     kdDebug() << "Callback cmd: " << cmd << endl;
     kdDebug() << "Callback result: " << res << endl;
-    if (res != "Done") {
+    if (res.lower().contains("unable")
+        || res.lower().contains("exception")
+        || res.lower().contains("failed")) {
         /*
         if (res.contains("force_download")) {


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

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