From 4d14cd9852e4a7a157744393d96e4b6ca8919897 Mon Sep 17 00:00:00 2001 From: Jussi Kuokkanen Date: Tue, 26 Nov 2019 13:02:31 +0200 Subject: [PATCH] qt: return nullptr for unhandled editors in AssignableEditorDelegate --- src/modules/interface/qt/data/AssignableEditorDelegate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/interface/qt/data/AssignableEditorDelegate.cpp b/src/modules/interface/qt/data/AssignableEditorDelegate.cpp index 5f2b2e7..6db1a07 100644 --- a/src/modules/interface/qt/data/AssignableEditorDelegate.cpp +++ b/src/modules/interface/qt/data/AssignableEditorDelegate.cpp @@ -23,13 +23,13 @@ QWidget *AssignableEditorDelegate::createEditor(QWidget *parent, const QStyleOpt editor = new IntRangeEditor(parent); return editor; default: - return QStyledItemDelegate::createEditor(parent, option, index); + return nullptr; } case TC_ASSIGNABLE_ENUM: editor = new EnumEditor(parent); return editor; default: - return QStyledItemDelegate::createEditor(parent, option, index); + return nullptr; } }