Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ffd41e4
)
IPLA 52416: TC7.4.0: "Remove" button in "Union of triangles" dialog is active if...
author
eap
<eap@opencascade.com>
Thu, 24 Apr 2014 14:23:09 +0000
(18:23 +0400)
committer
eap
<eap@opencascade.com>
Thu, 24 Apr 2014 14:23:09 +0000
(18:23 +0400)
src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx
b/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx
index 503de82d7bb741cfb0f69c037a8d6be5d5cef31b..b2fdc8bddd064dc8435664c56f39650030c88f28 100755
(executable)
--- a/
src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx
+++ b/
src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx
@@
-739,7
+739,7
@@
void SMESHGUI_MultiEditDlg::updateButtons()
bool isListBoxNonEmpty = myListBox->count() > 0;
bool isToAll = myToAllChk->isChecked();
myFilterBtn->setEnabled(!isToAll);
bool isListBoxNonEmpty = myListBox->count() > 0;
bool isToAll = myToAllChk->isChecked();
myFilterBtn->setEnabled(!isToAll);
- myRemoveBtn->setEnabled(
isListBoxNonEmpty
&& !isToAll);
+ myRemoveBtn->setEnabled(
myListBox->selectedItems().count()
&& !isToAll);
mySortBtn->setEnabled(isListBoxNonEmpty &&!isToAll);
const SALOME_ListIO& aList = mySelector->StoredIObjects();
mySortBtn->setEnabled(isListBoxNonEmpty &&!isToAll);
const SALOME_ListIO& aList = mySelector->StoredIObjects();
@@
-859,6
+859,8
@@
void SMESHGUI_MultiEditDlg::onListSelectionChanged()
mySelector->AddOrRemoveIndex(anActor->getIO(),anIndexes,false);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->highlight(anActor->getIO(),true,true);
mySelector->AddOrRemoveIndex(anActor->getIO(),anIndexes,false);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->highlight(anActor->getIO(),true,true);
+
+ myRemoveBtn->setEnabled( anIndexes.Extent() );
}
//=======================================================================
}
//=======================================================================