bug #4323 QueryWindow ignores CodeMirror

Signed-off-by: Marc Delisle <marc@infomarc.info>
Merge branch 'QA_4_1'