diff options
| author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2017-12-06 17:45:53 +0100 |
|---|---|---|
| committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2017-12-18 12:08:17 +0000 |
| commit | 0857db89bf2d36a1501c708521daacdbc83d5c5b (patch) | |
| tree | 2c632a5d0d8ada6aa1c29df2cdddbb2a0d8959c8 /src/sql/doc/snippets/code | |
| parent | 3841a7dd49667ceabdcbc416fa1e149bed7ed86e (diff) | |
Widgets: check if parent exists before calling parent->locale()
If a top level, parentless widget has Qt::WA_WindowPropagation
set, Qt will crash when trying to resolve the widgets locale.
The reason is that we try to access the QLocale of the
non-existing parent.
This patch will add a check if a parent exists before trying
to access it.
Task-number: QTBUG-61213
Change-Id: I09a6351a12dc1fffab3069b70e3d7b3932317c85
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions
