Fix a crash when opening the transfer history dialog
layout() returns nullptr here which causes a crash.
Actually set the layout instead, this fixes the crash and the dialog
looks as it should.
Differential Revision: https://phabricator.kde.org/D8730