Fix a crash with debug builds (hitting an assert inside Qt)
Fix a crash with debug builds (hitting an assert inside Qt)

Reviewed-by: Francesco Nwokeka
BUG: 274942

KDE/ktp-common-internals,leonhandreke/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals