diff --git a/Source/CitiesListSelectionWindow.cpp b/Source/CitiesListSelectionWindow.cpp index ed8b551..3756fc8 100644 --- a/Source/CitiesListSelectionWindow.cpp +++ b/Source/CitiesListSelectionWindow.cpp @@ -135,7 +135,8 @@ CitiesListSelectionWindow::CitiesListSelectionWindow(BRect rect, BWindow* parent int32 cityId) : BWindow(rect, B_TRANSLATE("Choose location"), B_TITLED_WINDOW, B_NOT_ZOOMABLE - | B_ASYNCHRONOUS_CONTROLS | B_CLOSE_ON_ESCAPE | B_AUTO_UPDATE_SIZE_LIMITS) + | B_ASYNCHRONOUS_CONTROLS | B_CLOSE_ON_ESCAPE | B_AUTO_UPDATE_SIZE_LIMITS), + fDownloadThread(-1) { fParent = parent; fCitiesListView = new BListView("citiesList"); @@ -149,7 +150,6 @@ CitiesListSelectionWindow::CitiesListSelectionWindow(BRect rect, BWindow* parent fCityControl->SetToolTip(B_TRANSLATE("Enter location: city, country, region")); fCityControl->SetModificationMessage( new BMessage(kSearchMessage)); - fCityControl->MakeFocus(true); BButton* fButtonOk = new BButton("ok", B_TRANSLATE("OK"), new BMessage(kSelectedCity)); @@ -168,6 +168,7 @@ CitiesListSelectionWindow::CitiesListSelectionWindow(BRect rect, BWindow* parent .End() .End(); fButtonOk->MakeDefault(true); + fCityControl->MakeFocus(true); _StartSearch(); }