Fixed Issue #1547

Fixes [Issue 1547](https://github.com/QupZilla/qupzilla/issues/1547) with the solution proposed by [srazi](https://github.com/srazi)