[Kstars-devel] KDE/kdeedu/kstars/kstars/dialogs

Prakash Mohan prak902000 at gmail.com
Thu Apr 16 01:39:59 CEST 2009


SVN commit 954590 by prakash:

Implementing a FIXME, separating the TZ check from the Lat/Lon check.

CCMAIL:kstars-devel at kde.org



 M  +6 -4      locationdialog.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/dialogs/locationdialog.cpp #954589:954590
@@ -219,12 +219,14 @@
         QString message = i18n( "All fields (except province) must be filled to add this location." );
         KMessageBox::sorry( 0, message, i18n( "Fields are Empty" ) );
         return;
-
-        //FIXME after strings freeze lifts, separate TZ check from lat/long check
-    } else if ( ! latOk || ! lngOk || ! tzOk ) {
-        QString message = i18n( "Could not parse coordinates." );
+    } else if ( ! latOk || ! lngOk ) {
+        QString message = i18n( "Could not parse the Latitude/Londitude" );
         KMessageBox::sorry( 0, message, i18n( "Bad Coordinates" ) );
         return;
+    } else if( ! tzOk) {
+    	QString message = i18n( "Could not parse coordinates." );
+        KMessageBox::sorry( 0, message, i18n( "Bad Coordinates" ) );
+        return;
     } else {
         if ( !nameModified ) {
             QString message = i18n( "Really override original data for this city?" );


More information about the Kstars-devel mailing list