Add missing braces around single-line statements in if().

Caught by gitlab CI, [readability-braces-around-statements,-warnings-as-errors]
1 job for master in 44 minutes and 31 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #61215
linux kf5-qt5 qt5.12

00:44:31

1.0%