GUI Editor menu entries enabled even if they should be not

I've found that when in code editor of a simple cpp file, the GUI Editor menu "Paste" and "Select All" menu entries are highlighted even if i can't select anything else (Gui editor is not available in this source file anyway).