| 2111 | } |
| 2112 | |
| 2113 | void MainWin::handleAspectRemoved(const AbstractAspect* parent, const AbstractAspect* /*before*/, const AbstractAspect* aspect) { |
| 2114 | // no need to react on removal of |
| 2115 | // - AbstractSimpleFilter |
| 2116 | // - columns in the data spreadsheet of a datapicker curve, |
| 2117 | // this can only happen when changing the error type and is done on the level of DatapickerImage |
| 2118 | if (!aspect->inherits(AspectType::AbstractFilter) && !(parent->parentAspect() && parent->parentAspect()->type() == AspectType::DatapickerCurve)) |
| 2119 | m_projectExplorer->setCurrentAspect(parent); |
| 2120 | } |
| 2121 | |
| 2122 | void MainWin::handleAspectAboutToBeRemoved(const AbstractAspect* aspect) { |
| 2123 | const auto* part = dynamic_cast<const AbstractPart*>(aspect); |
nothing calls this directly
no test coverage detected