Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qt
diff options
context:
space:
mode:
authorSergey Magidovich <mgsergio@mapswithme.com>2016-06-10 15:19:29 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-06-23 19:26:25 +0300
commit82cc6171cc02b73eec0140fddadd8c4f7e026dbd (patch)
treeea29f2bdb6db5c5b45ada8986f4ed9e9a1979c70 /qt
parenta9bdcb8f27a8ab84fe3fe2902abe8cff19584291 (diff)
Do not edit old maps. Refactor edit buttos showups.
Diffstat (limited to 'qt')
-rw-r--r--qt/place_page_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt/place_page_dialog.cpp b/qt/place_page_dialog.cpp
index 4162fb4a54..fef2ca432b 100644
--- a/qt/place_page_dialog.cpp
+++ b/qt/place_page_dialog.cpp
@@ -165,7 +165,7 @@ PlacePageDialog::PlacePageDialog(QWidget * parent, place_page::Info const & info
connect(closeButton, SIGNAL(clicked()), this, SLOT(OnClose()));
dbb->addButton(closeButton, QDialogButtonBox::RejectRole);
- if (info.IsEditable())
+ if (info.ShouldShowEditPlace())
{
QPushButton * editButton = new QPushButton("Edit Place");
connect(editButton, SIGNAL(clicked()), this, SLOT(OnEdit()));