<div dir="ltr">Hi everyone,<div>I have got problem with QgsMapToolIdentifyFeature in LayerSelection mode. </div><div>I create my own class called myFeature which inherits QgsMapToolIdentifyFeature.</div><div>This class has got variable "menu" which is identifyMenu from QgsMapToolIdentifyFeature class.</div><div>In myFeature class I create my custom action object "act" and I added it to identifyMenu as custom action.</div><div><br></div><div>My "act" is a object of MyMapLayerAction class inherits from QgsMapLayerAction.</div><div><br></div><div>Is it any way to override the default "identify" ("identyfikacja" on screen) action or remove it from identify menu? </div><div><br></div><div>My code:</div><div><br></div><div>class myFeature(QgsMapToolIdentifyFeature):<br>    def __init__(self, iface):<br>        self.iface = iface<br>        self.canvas = self.iface.mapCanvas()<br>        self.layer = self.iface.activeLayer()<br>        super().__init__(self.canvas, self.layer)<br>        menu = self.identifyMenu()            <br>        act = MyMapLayerAction("Do sth", <br>                               menu, <br>                               QgsMapLayerType.VectorLayer, <br>                               QgsMapLayerAction.SingleFeature)<br>        menu.addCustomAction(act)<br>              <br>class MyMapLayerAction(QgsMapLayerAction):<br>    def __init__(self, name, menu, vector, single):<br>        super().__init__(name, menu, vector, single)<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Screen:</div><div><img src="cid:ii_ley1f6e10" alt="image.png" width="542" height="103"><br></div></div>