mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +01:00
Bug fix
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4199 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -44,8 +44,11 @@ ReportElement::ReportElement(const ElementsLocation &location, QString link_type
|
|||||||
link_type == "next_report"? inverse_report=PreviousReport : inverse_report=NextReport;
|
link_type == "next_report"? inverse_report=PreviousReport : inverse_report=NextReport;
|
||||||
|
|
||||||
//We make these connections, to be always aware about the conductor properties
|
//We make these connections, to be always aware about the conductor properties
|
||||||
connect (terminals().first(), &Terminal::conductorWasAdded, this, &ReportElement::conductorWasAdded);
|
if (terminals().size())
|
||||||
connect (terminals().first(), &Terminal::conductorWasRemoved, this, &ReportElement::conductorWasRemoved);
|
{
|
||||||
|
connect (terminals().first(), &Terminal::conductorWasAdded, this, &ReportElement::conductorWasAdded);
|
||||||
|
connect (terminals().first(), &Terminal::conductorWasRemoved, this, &ReportElement::conductorWasRemoved);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -55,7 +58,8 @@ ReportElement::ReportElement(const ElementsLocation &location, QString link_type
|
|||||||
ReportElement::~ReportElement()
|
ReportElement::~ReportElement()
|
||||||
{
|
{
|
||||||
unlinkAllElements();
|
unlinkAllElements();
|
||||||
disconnect(terminals().first(), 0, 0, 0);
|
if (terminals().size())
|
||||||
|
disconnect(terminals().first(), 0, 0, 0);
|
||||||
if (m_watched_conductor)
|
if (m_watched_conductor)
|
||||||
disconnect(m_watched_conductor, &Conductor::propertiesChange, this, &ReportElement::updateLabel);
|
disconnect(m_watched_conductor, &Conductor::propertiesChange, this, &ReportElement::updateLabel);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user