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

List:       kde-commits
Subject:    KDE/kdelibs/kio/kio
From:       David Faure <faure () kde ! org>
Date:       2006-05-03 16:39:19
Message-ID: 1146674359.975274.2218.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 536980 by dfaure:

Keep the kde3 convention for the port number given to the kioslaves.


 M  +6 -0      scheduler.cpp  


--- trunk/KDE/kdelibs/kio/kio/scheduler.cpp #536979:536980
@@ -279,6 +279,8 @@
 {
     QString host = url.host();
     int port = url.port();
+    if ( port == -1 ) // no port is -1 in QUrl, but in kde3 we used 0 and the \
kioslaves assume that. +        port = 0;
     QString user = url.user();
     QString passwd = url.pass();
 
@@ -441,6 +443,8 @@
 {
     QString host = url.host();
     int port = url.port();
+    if ( port == -1 ) // no port is -1 in QUrl, but in kde3 we used 0 and the \
kioslaves assume that. +        port = 0;
     QString user = url.user();
     exact = true;
 
@@ -715,6 +719,8 @@
            KUrl url =job->url();
            QString host = url.host();
            int port = url.port();
+           if ( port == -1 ) // no port is -1 in QUrl, but in kde3 we used 0 and the \
kioslaves assume that. +               port = 0;
 
            if (slave->host() == "<reset>")
            {


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

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