From fe4ccf09c2c21d9b1499429f5531b765d9c928e2 Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Fri, 15 Jul 2016 20:16:41 +0300 Subject: Direct editing of default name is locked, editing of multilingual names is allowed, changes for android are included --- qt/editor_dialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qt') 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) { -- cgit v1.2.3