mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-10 14:24:21 +00:00
merge add place/business options
Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
@@ -30,8 +30,7 @@ bool Info::IsBookmark() const
|
||||
|
||||
bool Info::ShouldShowAddPlace() const
|
||||
{
|
||||
auto const isPointOrBuilding = IsPointType() || IsBuilding();
|
||||
return !IsTrack() && !(IsFeature() && isPointOrBuilding);
|
||||
return !IsTrack() && !(IsFeature() && IsPointType());
|
||||
}
|
||||
|
||||
void Info::SetFromFeatureType(FeatureType & ft)
|
||||
|
||||
@@ -105,7 +105,7 @@ public:
|
||||
|
||||
/// Edit and add
|
||||
bool ShouldShowAddPlace() const;
|
||||
bool ShouldShowAddBusiness() const { return IsBuilding(); }
|
||||
bool ShouldShowAddBusiness() const { return false; } //TODO: delete function when not used in iOS any more
|
||||
bool ShouldShowEditPlace() const;
|
||||
|
||||
bool ShouldEnableAddPlace() const { return m_canEditOrAdd; }
|
||||
|
||||
Reference in New Issue
Block a user