[Kstars-devel] branches/kstars/summer/kstars/kstars/tools

Prakash Mohan prak902000 at gmail.com
Mon Jun 15 20:52:29 CEST 2009


SVN commit 982393 by prakash:

Changing the file name of the saved images and also making sure we don't delete user saved file when deleting images.

CCMAIL: kstars-devel at kde.org


 M  +3 -3      observinglist.cpp  


--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #982392:982393
@@ -1195,9 +1195,9 @@
     DecString = DecString.sprintf( "%c%02d+%02d+%02d", decsgn, dd, dm, ds );
     RA = RA.sprintf( "ra=%f", o->ra0()->Degrees() );
     Dec = Dec.sprintf( "&dec=%f", o->dec0()->Degrees() );
-    CurrentImage = "image_" +  o->name().remove(' ');
+    CurrentImage = "Image_" +  o->name().remove(' ');
     if( o->name() == "star" ) {
-        CurrentImage = "image" + RAString + DecString;
+        CurrentImage = "Image" + RAString + DecString;
         CurrentImage = CurrentImage.remove('+').remove('-') + decsgn;
     }
     QString UrlPrefix( "http://archive.stsci.edu/cgi-bin/dss_search?v=1" );
@@ -1231,7 +1231,7 @@
     QDirIterator it( KStandardDirs::locateLocal( "appdata", "" ) );
     while( it.hasNext() )
     {
-        if( it.fileName().contains( "image" ) && ( ! it.fileName().contains( "dat" ) ) ) {
+        if( it.fileName().contains( "Image" ) && ( ! it.fileName().contains( "dat" ) ) && ( ! it.fileName().contains( "obslist" ) ) ) {
             QFile file( it.filePath() );
             file.remove();
         }


More information about the Kstars-devel mailing list