From 5ad9fef3d46416ae3e852aa4bd5816598f21b1de Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 30 Dec 2016 13:05:08 +0300 Subject: [PATCH] Fix editor creation --- src/CollectionPlugin/CollectionPlugin_WidgetField.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp index c3495b7ee..bdb55bdf3 100644 --- a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp +++ b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp @@ -84,11 +84,13 @@ QWidget* DataTableItemDelegate::createEditor(QWidget* theParent, aBox->addItem(MYTrue); aEditor = aBox; } + break; + default: + aEditor = QStyledItemDelegate::createEditor(theParent, theOption, theIndex); } } - aEditor = QStyledItemDelegate::createEditor(theParent, theOption, theIndex); - //QObject* aThat = (QObject*) this; - //aEditor->installEventFilter(aThat); + QObject* aThat = (QObject*) this; + aEditor->installEventFilter(aThat); return aEditor; } -- 2.39.2