diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-06-10 15:19:29 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-06-23 19:26:25 +0300 |
commit | 82cc6171cc02b73eec0140fddadd8c4f7e026dbd (patch) | |
tree | ea29f2bdb6db5c5b45ada8986f4ed9e9a1979c70 /qt | |
parent | a9bdcb8f27a8ab84fe3fe2902abe8cff19584291 (diff) |
Do not edit old maps. Refactor edit buttos showups.
Diffstat (limited to 'qt')
-rw-r--r-- | qt/place_page_dialog.cpp | 2 |
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())); |