Fix variable assignment
Noticed this while refactoring something in the area.
Differential Revision: https://phabricator.kde.org/D28905