remove  WFAPI hack code in mainwindow

.. accidentally committed earlier