diff options
author | Maxim Pimenov <m@maps.me> | 2016-05-17 15:16:56 +0300 |
---|---|---|
committer | Maxim Pimenov <m@maps.me> | 2016-05-17 15:24:22 +0300 |
commit | 881d8146a3fc6a13c5b0de912cfcbb94cf62864d (patch) | |
tree | 530a892af6430b2e138118b35822dbf8d586fb3a | |
parent | c1479655b0f3eea22f0181c99c3406298546d297 (diff) |
Review fixes.
-rw-r--r-- | qt/create_feature_dialog.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/qt/create_feature_dialog.cpp b/qt/create_feature_dialog.cpp index 28df823128..8a0d7f8bf2 100644 --- a/qt/create_feature_dialog.cpp +++ b/qt/create_feature_dialog.cpp @@ -1,5 +1,7 @@ #include "qt/create_feature_dialog.hpp" +#include "platform/preferred_languages.hpp" + #include "indexer/new_feature_categories.hpp" #include <QtWidgets/QDialogButtonBox> @@ -9,11 +11,12 @@ CreateFeatureDialog::CreateFeatureDialog(QWidget * parent, osm::NewFeatureCategories & cats) : QDialog(parent) { - cats.AddLanguage("en"); + cats.AddLanguage("en"); // Default. + cats.AddLanguage(languages::GetCurrentNorm()); QListWidget * allSortedList = new QListWidget(); - auto const & categories = cats.GetAllCategoryNames("en"); + auto const & categories = cats.GetAllCategoryNames(languages::GetCurrentNorm()); for (auto const & entry : categories) { QListWidgetItem * lwi = new QListWidgetItem(entry.first.c_str() /* name */, allSortedList); |