Przeglądaj źródła

Do not activate new items when parent widget is inactive

Ivan Savenko 2 lat temu
rodzic
commit
b0a3f95d20
1 zmienionych plików z 2 dodań i 1 usunięć
  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;
 	item->recActions = defActions;
 	addChild(item.get());
 	addChild(item.get());
-	item->activate();
+	if (active)
+		item->activate();
 	return item;
 	return item;
 }
 }