Fix connection being active longer than the dialog exists
Qt 5.2 allows use to also pass a context object when we connect to a functor.