Merge branch 'delegate_crash_fix' into 'master'

Add a missing null pointer check

See merge request OpenMW/openmw!4210
pull/3236/head
Evil Eye 6 months ago
commit 72b62f845e

@ -45,7 +45,8 @@ CSVWorld::DataDisplayDelegate::DataDisplayDelegate(const ValueList& values, cons
, mUiScale(static_cast<QGuiApplication*>(QGuiApplication::instance())->devicePixelRatio())
, mSettingKey(pageName + '/' + settingName)
{
parent->installEventFilter(this);
if (parent)
parent->installEventFilter(this);
buildPixmaps();

Loading…
Cancel
Save