aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/qt_connection_util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/qt_connection_util.h b/lib/qt_connection_util.h
index edcdc572..90bc3f9b 100644
--- a/lib/qt_connection_util.h
+++ b/lib/qt_connection_util.h
@@ -91,8 +91,9 @@ inline auto connectSingleShot(auto* sender, auto signal, ContextT* context,
(context->*slot)(args...);
};
# endif
- return _impl::connect<_impl::SingleShot>(sender, signal, context,
- std::move(boundSlot), connType);
+ return _impl::connect<_impl::SingleShot>(
+ sender, signal, context,
+ std::forward<decltype(boundSlot)>(boundSlot), connType);
} else {
return _impl::connect<_impl::SingleShot>(sender, signal, context, slot,
connType);