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

Jérôme Sonrier jsid at emor3j.fr.eu.org
Wed Feb 16 02:13:06 CET 2011


SVN commit 1220977 by jsonrier:

Fix crash in location dialog when you edit city name and click OK without selecting an item in city list.

CCMAIL: kstars-devel at kde.org



 M  +1 -1      locationdialog.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/dialogs/locationdialog.cpp #1220976:1220977
@@ -175,7 +175,7 @@
     KStarsData* data = KStarsData::Instance();
     //when the selected city changes, set newCity, and redraw map
     SelectedCity = 0L;
-    if ( ui->GeoBox->currentItem() >= 0 ) {
+    if ( ui->GeoBox->currentItem() ) {
         for ( int i=0; i < filteredCityList.size(); ++i ) {
             GeoLocation *loc = filteredCityList.at(i);
             if ( loc->fullName() == ui->GeoBox->currentItem()->text()) {


More information about the Kstars-devel mailing list