[Marble-commits] KDE/kdeedu/marble/src/lib

Thibaut Gridel tgridel at free.fr
Thu Jan 14 19:27:42 CET 2010


SVN commit 1074768 by tgridel:

FileLoader: disable .cache file for non "standard placemark" files

 M  +6 -3      FileLoader.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/FileLoader.cpp #1074767:1074768
@@ -68,13 +68,13 @@
 
         if ( fileinfo.isAbsolute() ) {
             // We got an _absolute_ path now: e.g. "/patrick.kml"
-            defaultcachename = path + '/' + name + ".cache";
+            // defaultcachename = path + '/' + name + ".cache";
             defaultsrcname   = path + '/' + name + '.' + suffix;
         }
         else {
             if ( m_filepath.contains( '/' ) ) {
                 // _relative_ path: "maps/mars/viking/patrick.kml"
-                defaultcachename = MarbleDirs::path( path + '/' + name + ".cache" );
+                // defaultcachename = MarbleDirs::path( path + '/' + name + ".cache" );
                 defaultsrcname   = MarbleDirs::path( path + '/' + name + '.' + suffix);
             }
             else {
@@ -120,7 +120,10 @@
             {
                 // Read the KML file.
                 importKml( defaultsrcname );
-                saveFile( defaultcachename );
+                if ( ! defaultcachename.isEmpty() )
+                {
+                    saveFile( defaultcachename );
+                }
             }
             else
             {


More information about the Marble-commits mailing list