Added an additional check to workaround an issue on Windows.
Added an additional check to workaround an issue on Windows.

Reviewed-by: David Boddie
Original-patch-by: Friedemann Kleint
(cherry picked from commit 8b1654ec6a892e84c1654c9196e80461ee6e92fa)

kobolabs/qtdoc,kobolabs/qtdoc,kobolabs/qtdoc,kobolabs/qtdoc