Merge pull request #6946 from spycrab/qt_rob

Qt/RunOnObject: Fix no result being returned
This commit is contained in:
spycrab 2018-05-23 01:15:59 +02:00 committed by GitHub
commit 51410b7672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ auto RunOnObject(QObject* object, F&& functor)
{ {
if (m_obj) if (m_obj)
{ {
(*m_result) = m_func(); m_result = m_func();
} }
else else
{ {