mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
When unlink an element, make sure this element isn't highlighted
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3561 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -85,9 +85,11 @@ void SlaveElement::unlinkAllElements() {
|
||||
* Unlink the given elmt in parametre
|
||||
* @param elmt
|
||||
*/
|
||||
void SlaveElement::unlinkElement(Element *elmt) {
|
||||
//Ensure elmt is linked to this element
|
||||
if (connected_elements.contains(elmt)) {
|
||||
void SlaveElement::unlinkElement(Element *elmt)
|
||||
{
|
||||
//Ensure elmt is linked to this element
|
||||
if (connected_elements.contains(elmt))
|
||||
{
|
||||
connected_elements.removeOne(elmt);
|
||||
|
||||
disconnect(elmt, SIGNAL(xChanged()), this, SLOT(updateLabel()));
|
||||
@@ -99,7 +101,8 @@ void SlaveElement::unlinkElement(Element *elmt) {
|
||||
delete Xref_item; Xref_item = NULL;
|
||||
|
||||
updateLabel();
|
||||
elmt -> unlinkElement(this);
|
||||
elmt -> unlinkElement (this) ;
|
||||
elmt -> setHighlighted (false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user