Fixes #1

QAjaxControlAction instead of QAjaxAction and replaced ; with , also wrapped an if statement with curly braces.