Change Details
searchwidget.cpp |
134 | 134 | void SearchWidget::streetChanged(const QString &street) |
135 | 135 | { |
136 | 136 | if (m_loaded) { |
137 | | m_addrLookup->SelectPlace(m_cityList->currentItem()->data(Qt::UserRole).toInt()); |
| 137 | QListWidgetItem *item = m_cityList->currentItem(); |
| 138 | if (item) { |
| 139 | m_addrLookup->SelectPlace(item->data(Qt::UserRole).toInt()); |
| 140 | } |
138 | 141 | QStringList suggestions, inputSuggestions; |
139 | 142 | bool found = m_addrLookup->GetStreetSuggestions(street, 20, &suggestions, &inputSuggestions); |
140 | 143 | if (found) { |
Download the corresponding diff file