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

Prakash Mohan prak902000 at gmail.com
Sun Jun 14 18:17:27 CEST 2009


SVN commit 981981 by prakash:

Making a check to see if the session list is not the old formatted observing list.

CCMAIL: kstars-devel at kde.org


 M  +5 -0      observinglist.cpp  


--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #981980:981981
@@ -818,6 +818,11 @@
         QString line;
         SessionName = istream.readLine();
         line = istream.readLine();
+        if( ! line.contains( '|' ) ) {
+            SessionName = "";
+            KMessageBox::sorry( 0, i18n( "Old formatted Observing Lists are not supported " ), i18n( "Invalid List" ) );
+            return;
+        }
         QStringList fields = line.split( '|' ); 
         geo = ks->data()->locationNamed( fields[0], fields[1], fields[2] );
         ui->SetLocation -> setText( geo -> fullName() );


More information about the Kstars-devel mailing list