Fixed defects found in review
[situare] / src / map / friendlocationitem.cpp
index cbd8114..b72e637 100644 (file)
@@ -56,6 +56,11 @@ void FriendLocationItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
 void FriendLocationItem::setPartOfGroup(bool value)
 {
     m_partOfGroup = value;
+
+    if (value)
+        hide();
+    else
+        show();
 }
 
 QString FriendLocationItem::userId() const