Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #1351: partition is not done
[modules/shaper.git]
/
src
/
PartSet
/
PartSet_WidgetEditor.cpp
diff --git
a/src/PartSet/PartSet_WidgetEditor.cpp
b/src/PartSet/PartSet_WidgetEditor.cpp
index 66ed150b86e2c2947c633598f781bd79c0a97e1e..d0a129aba01b49031ea569c398776a79f3683fb8 100644
(file)
--- a/
src/PartSet/PartSet_WidgetEditor.cpp
+++ b/
src/PartSet/PartSet_WidgetEditor.cpp
@@
-23,9
+23,9
@@
PartSet_WidgetEditor::PartSet_WidgetEditor(QWidget* theParent, ModuleBase_IWorks
bool PartSet_WidgetEditor::focusTo()
{
PartSet_Module* aModule = dynamic_cast<PartSet_Module*>(myWorkshop->module());
bool PartSet_WidgetEditor::focusTo()
{
PartSet_Module* aModule = dynamic_cast<PartSet_Module*>(myWorkshop->module());
- if (aModule->isMouseOverWindow())
- return ModuleBase_Widget
DoubleValue
::focusTo();
+ if (aModule->isMouseOverWindow()
&& !isEditingMode()
)
+ return ModuleBase_Widget
Editor
::focusTo();
else {
else {
-
ModuleBase_WidgetEditor
::focusTo();
+
return ModuleBase_WidgetDoubleValue
::focusTo();
}
}
}
}