merge add place/business options

Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
map-per
2025-09-25 16:26:32 +02:00
committed by x7z4w
parent e3c287db53
commit efc8e44350
8 changed files with 4 additions and 50 deletions

View File

@@ -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)

View File

@@ -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; }