Objects not rendering

Sometimes when i try to render the scene some objects dont show. This had lead to me deleting my blend files and starting over my work because i didnt know what to do a few times. Recently i realized that whenever the camera icon in the outliner is unchecked for an object it is not rendered, and at random times it gets unchecked for all the objects in the scene and i have to check them again, one by one. This is annoying and a waste of time, especially when working with complex scenes.

Is this a bug or am i pressing a shortcut key by accident that’s doing this?

Select your objects and if you press spacebar and search for render you’ll see.

Set Restrict Render = Ctrl+H
Clear Restrict Render = Ctrl+Alt+H

thanks, problem solved