From 7be77c97a026a5ee5a396af6281dfa17e1bf1127 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 13 Dec 2016 13:02:59 +0300 Subject: [PATCH] Issue #1903: Set default value for string --- src/CollectionPlugin/CollectionPlugin_WidgetField.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp index b3614907c..ceab82f12 100644 --- a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp +++ b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp @@ -372,6 +372,9 @@ QTableWidgetItem* CollectionPlugin_WidgetField::createDefaultItem() const case ModelAPI_AttributeTables::BOOLEAN: aItem->setText(MYFalse); break; + case ModelAPI_AttributeTables::STRING: + aItem->setText(""); + break; } return aItem; } @@ -892,6 +895,9 @@ void CollectionPlugin_WidgetField::onFieldTypeChanged(int theIdx) case ModelAPI_AttributeTables::BOOLEAN: aTable->item(j, i)->setText(MYFalse); break; + case ModelAPI_AttributeTables::STRING: + aTable->item(j, i)->setText(""); + break; } } } -- 2.39.2