qtclient: made more MDI functionality work, some bugfixing