Commit b4b0afbc authored by Pino Toscano's avatar Pino Toscano
Browse files

fix check for null

parent cb2c092a
......@@ -136,7 +136,7 @@ void KSWizard::initGeoPage() {
}
void KSWizard::slotChangeCity() {
if ( location->CityListBox->currentItem() >= 0 ) {
if ( location->CityListBox->currentItem() ) {
for ( int i=0; i < filteredCityList.size(); ++i ) {
if ( filteredCityList[i]->fullName() == location->CityListBox->currentItem()->text() ) {
Geo = filteredCityList[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment