Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
52943: "Apply and Close" button does not active on symmetry dialog box
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI_RemoveElementsDlg.cxx
diff --git
a/src/SMESHGUI/SMESHGUI_RemoveElementsDlg.cxx
b/src/SMESHGUI/SMESHGUI_RemoveElementsDlg.cxx
index 2868c1ed60a815c258d55e157f0d8ec205be6e7b..1ebfd06227d4aeace34ea6495fa66f0c7e473292 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_RemoveElementsDlg.cxx
+++ b/
src/SMESHGUI/SMESHGUI_RemoveElementsDlg.cxx
@@
-80,8
+80,8
@@
SMESHGUI_RemoveElementsDlg
::SMESHGUI_RemoveElementsDlg(SMESHGUI* theModule)
: QDialog(SMESH::GetDesktop(theModule)),
SMESHGUI_RemoveElementsDlg
::SMESHGUI_RemoveElementsDlg(SMESHGUI* theModule)
: QDialog(SMESH::GetDesktop(theModule)),
- mySelector(SMESH::GetViewWindow(theModule)->GetSelector()),
mySelectionMgr(SMESH::GetSelectionMgr(theModule)),
mySelectionMgr(SMESH::GetSelectionMgr(theModule)),
+ mySelector(SMESH::GetViewWindow(theModule)->GetSelector()),
mySMESHGUI(theModule),
myBusy(false),
myFilterDlg(0)
mySMESHGUI(theModule),
myBusy(false),
myFilterDlg(0)
@@
-377,7
+377,7
@@
void SMESHGUI_RemoveElementsDlg::onTextChange(const QString& theNewText)
void SMESHGUI_RemoveElementsDlg::SelectionIntoArgument()
{
if (myBusy) return; // busy
void SMESHGUI_RemoveElementsDlg::SelectionIntoArgument()
{
if (myBusy) return; // busy
- if (myFilterDlg && myFilterDlg->isVisible()) return; // filter d
igl
active
+ if (myFilterDlg && myFilterDlg->isVisible()) return; // filter d
lg
active
if (!GroupButtons->isEnabled()) return; // inactive
// clear
if (!GroupButtons->isEnabled()) return; // inactive
// clear
@@
-532,6
+532,7
@@
void SMESHGUI_RemoveElementsDlg::setFilters()
if ( myMesh->NbVolumes() ) types << SMESH::VOLUME;
if ( myMesh->NbBalls() ) types << SMESH::BALL;
if ( myMesh->Nb0DElements()) types << SMESH::ELEM0D;
if ( myMesh->NbVolumes() ) types << SMESH::VOLUME;
if ( myMesh->NbBalls() ) types << SMESH::BALL;
if ( myMesh->Nb0DElements()) types << SMESH::ELEM0D;
+ if ( types.count() > 1 ) types << SMESH::ALL;
myFilterDlg->Init( types );
myFilterDlg->SetSelection();
myFilterDlg->Init( types );
myFilterDlg->SetSelection();