Do not crash on non-QVariant return types
Patch e354bdc5 introduced a regression that triggers a crash
in Qt 5.9 when returning a type that is not implicitly convertible
to QVariant, such as a QJsonValue, from an invoked method/slot.
This patch fixes this situation and adds proper unit test coverage.
Change-Id: Ib8cb0c96e7496bc8dc9a628245d7a44e4234aff0
Task-number: QTBUG-62045
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Reviewed-by: Kai Dohmen <psykai1993@googlemail.com>
| commit | b5229df6a08a902b11a2fc9529af6385f4d985d5 |
| parent | 01bd2b3ca88b42b9daac7cb00d196eb90d168570 |
| author | Milian Wolff <milian.wolff@kdab.com> |
| committer | Milian Wolff <milian.wolff@kdab.com> |
| commit time | Tue, 8 Aug 2017 20:55:01 +0000 |