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

List:       kde-commits
Subject:    KDE/kdeedu/marble/src/lib
From:       Daniel Molkentin <molkentin () kde ! org>
Date:       2007-08-21 18:44:13
Message-ID: 1187721853.311681.29624.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 703003 by danimo:

Work properly on Windows. Never forget that Qt internally always separates paths with \
'/', regardless of the underlying OS. Also, using QDir we get a better impression on \
what we are actually doing.

 M  +4 -1      HttpFetchFile.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/HttpFetchFile.cpp #703002:703003
@@ -127,7 +127,10 @@
 
     QString localFileUrlString = job->targetDirString + job->relativeUrlString;
 
-    QString localFilePath = localFileUrlString.section( QDir::separator(), 0, -2 ); 
+    QDir localFileDir(localFileUrlString);
+    localFileDir.cdUp();
+    localFileDir.cdUp();
+    QString localFilePath = localFileDir.absolutePath();
 //    qDebug() << "Moving download to: " << localFileUrlString << " in: " << \
localFilePath;  
     if ( !QDir( localFilePath ).exists() )


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

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