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:
Jan Grulich 2020-06-15 20:38:37 +02:00
parent b89d8c406b
commit d979f0a8c8

View File

@ -65,7 +65,7 @@ public:
delete baseTheme;
}
QPlatformTheme *baseTheme;
QPlatformTheme *baseTheme = nullptr;
uint fileChooserPortalVersion = 0;
};