+ rename signal to signalRelabelObject and remove unused code
This commit is contained in:
@@ -923,17 +923,6 @@ void SelectionSingleton::slotDeletedObject(const App::DocumentObject& Obj)
|
||||
Selection().rmvSelection( Obj.getDocument()->getName(), Obj.getNameInDocument() );
|
||||
}
|
||||
|
||||
void SelectionSingleton::slotRenamedObject(const App::DocumentObject& Obj)
|
||||
{
|
||||
// compare internals with the document and change them if needed
|
||||
App::Document* pDoc = Obj.getDocument();
|
||||
for (std::list<_SelObj>::iterator it = _SelList.begin(); it != _SelList.end(); ++it) {
|
||||
if (it->pDoc == pDoc) {
|
||||
it->DocName = pDoc->getName();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// Construction/Destruction
|
||||
@@ -946,7 +935,6 @@ SelectionSingleton::SelectionSingleton()
|
||||
{
|
||||
ActiveGate = 0;
|
||||
App::GetApplication().signalDeletedObject.connect(boost::bind(&Gui::SelectionSingleton::slotDeletedObject, this, _1));
|
||||
App::GetApplication().signalRenamedObject.connect(boost::bind(&Gui::SelectionSingleton::slotRenamedObject, this, _1));
|
||||
CurrentPreselection.pDocName = 0;
|
||||
CurrentPreselection.pObjectName = 0;
|
||||
CurrentPreselection.pSubName = 0;
|
||||
|
||||
Reference in New Issue
Block a user