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

Jason Harris kstars at 30doradus.org
Fri Jul 8 09:01:14 CEST 2005


SVN commit 432678 by harris:

startup wizard fixes: 

the startup focus position was RA=12h, Dec=45deg rather than Az=180, Alt=45.

If no location was entered in the wizard, the location was set to 
Greenwich, CT, USA instead of Greenwich, UK.

CCMAIL: kstars-devel at kde.org


 M  +2 -2      kstarsdata.cpp  
 M  +4 -2      kswizard.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/kstarsdata.cpp #432677:432678
@@ -75,8 +75,8 @@
 
 	//Check to see if config file already exists.  If not, set 
 	//useDefaultOptions = true
-	QString fname = locate( "config", "kstarsrc" );
-	useDefaultOptions = fname.isEmpty();
+	QString fname = locateLocal( "config", "kstarsrc" );
+	useDefaultOptions = ! ( QFile(fname).exists() );
 
 	//Instantiate LST and HourAngle
 	LST = new dms();
--- trunk/KDE/kdeedu/kstars/kstars/kswizard.cpp #432677:432678
@@ -115,15 +115,17 @@
 		CityListBox->insertItem( loc->fullName() );
 		filteredCityList.append( loc );
 		
-		if ( loc->fullName() == ksw->data()->geo()->fullName() ) 
+		if ( loc->fullName() == ksw->data()->geo()->fullName() ) {
 			index = ksw->data()->geoList.at();
+			Geo = loc;
+		}
 	}
 	
 	//Sort alphabetically
 	CityListBox->sort();
 	
 	//preset to current city
-	CityListBox->setCurrentItem( index );
+	CityListBox->setCurrentItem( index + 1 );
 }
 
 void KSWizard::slotChangeCity() {


More information about the Kstars-devel mailing list