diff options
author | Arsentiy Milchakov <a.milchakov@corp.mail.ru> | 2016-07-15 20:16:41 +0300 |
---|---|---|
committer | Arsentiy Milchakov <a.milchakov@corp.mail.ru> | 2016-07-19 14:43:41 +0300 |
commit | fe4ccf09c2c21d9b1499429f5531b765d9c928e2 (patch) | |
tree | 96aab836723ffd13cf44e4adf954c63a02513c26 /qt | |
parent | 751e6ea7a91f0ba8e9248206a61721137504946c (diff) |
Direct editing of default name is locked, editing of multilingual names is allowed, changes for android are included
Diffstat (limited to 'qt')
-rw-r--r-- | qt/editor_dialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qt/editor_dialog.cpp b/qt/editor_dialog.cpp index f9e39a5eea..61856dbc16 100644 --- a/qt/editor_dialog.cpp +++ b/qt/editor_dialog.cpp @@ -60,7 +60,9 @@ EditorDialog::EditorDialog(QWidget * parent, osm::EditableMapObject & emo) int namesRow = 0; namesGrid->addWidget(defaultName, namesRow++, 0, 1, 0); - for (osm::LocalizedName const & ln : emo.GetLocalizedNames()) + auto const namesDataSource = emo.GetNamesDataSource(); + + for (osm::LocalizedName const & ln : namesDataSource.names) { if (ln.m_code == StringUtf8Multilang::kDefaultCode) { |