Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a1eba4
)
Issue #2464: Du not use default values in editing mode
author
vsv
<vsv@opencascade.com>
Sat, 28 Apr 2018 07:33:10 +0000
(10:33 +0300)
committer
vsv
<vsv@opencascade.com>
Sat, 28 Apr 2018 07:33:10 +0000
(10:33 +0300)
src/ModuleBase/ModuleBase_PagedContainer.cpp
patch
|
blob
|
history
diff --git
a/src/ModuleBase/ModuleBase_PagedContainer.cpp
b/src/ModuleBase/ModuleBase_PagedContainer.cpp
index 2cb2fddde8ec676553ea7af8cd07c151a0ebfdd6..f987109431f9ffbe7f8e5eca82dd9dcbd1d9b466 100644
(file)
--- a/
src/ModuleBase/ModuleBase_PagedContainer.cpp
+++ b/
src/ModuleBase/ModuleBase_PagedContainer.cpp
@@
-100,8
+100,12
@@
bool ModuleBase_PagedContainer::restoreValueCustom()
DataPtr aData = myFeature->data();
AttributeStringPtr aStringAttr = aData->string(attributeID());
- QString aCaseId = QString::fromStdString(aDefVal.empty()?
- aStringAttr->value() : aDefVal);
+ QString aCaseId;
+ if (myIsEditing)
+ aCaseId = QString::fromStdString(aStringAttr->value());
+ else
+ aCaseId = QString::fromStdString(aDefVal.empty()? aStringAttr->value() : aDefVal);
+
myIsFirst = false;
int idx = myCaseIds.indexOf(aCaseId);
if (idx == -1)