[prev in list] [next in list] [prev in thread] [next in thread]
List: kstars-devel
Subject: [Kstars-devel] KDE/kdeedu/kstars/kstars/dialogs
From: Jérôme Sonrier <jsid () emor3j ! fr ! eu ! org>
Date: 2011-02-16 1:13:06
Message-ID: 20110216011306.CA1F3AC8BC () svn ! kde ! org
[Download RAW message or body]
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@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()) {
_______________________________________________
Kstars-devel mailing list
Kstars-devel@kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic