diff --git a/lang/qt/src/threadedjobmixin.h b/lang/qt/src/threadedjobmixin.h index e92d02d7..92a02c24 100644 --- a/lang/qt/src/threadedjobmixin.h +++ b/lang/qt/src/threadedjobmixin.h @@ -184,6 +184,7 @@ protected: m_thread.setFunction([this, func]() { return func(this->context()); }); } +public: template void run(const T_binder &func) { @@ -219,6 +220,8 @@ protected: m_thread.setFunction(std::bind(func, this->context(), this->thread(), std::weak_ptr(io1), std::weak_ptr(io2))); m_thread.start(); } + +protected: GpgME::Context *context() const { return m_ctx.get();