Make sure we correctly construct underlying base platform theme
When the base platform theme is not set to a null pointer, then we might assume it has been already constructed and later on try to access an invalid address which will cause a crash. Pick-to: 5.15 Change-Id: I6187336bca527e1feeb0902bcfb16f2fbec86d24 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
b89d8c406b
commit
d979f0a8c8
@ -65,7 +65,7 @@ public:
|
||||
delete baseTheme;
|
||||
}
|
||||
|
||||
QPlatformTheme *baseTheme;
|
||||
QPlatformTheme *baseTheme = nullptr;
|
||||
uint fileChooserPortalVersion = 0;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user