Fix uninitialized Callback::function field

When Callback() was initialized with a QtCallback, this field
was not initialized.