Browse Source

Do not activate new items when parent widget is inactive

Ivan Savenko 2 years ago
parent
commit
b0a3f95d20
1 changed files with 2 additions and 1 deletions
  1. 2 1
      client/widgets/ObjectLists.cpp

+ 2 - 1
client/widgets/ObjectLists.cpp

@@ -35,7 +35,8 @@ std::shared_ptr<CIntObject> CObjectList::createItem(size_t index)
 
 	item->recActions = defActions;
 	addChild(item.get());
-	item->activate();
+	if (active)
+		item->activate();
 	return item;
 }