Commit 5f744228 authored by demian's avatar demian

BUG: Corrected bug 2577, now there is always a fiber bundle selected if there is one in the scene

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21568 3bd1e089-480b-0410-8dfb-8563597acbee
parent 44074efd
......@@ -146,6 +146,13 @@ bool qMRMLTractographyDisplayTreeView::viewportEvent(QEvent* e)
#endif
//------------------------------------------------------------------------------
void qMRMLTractographyDisplayTreeView::dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight )
{
qMRMLTreeView::dataChanged(topLeft, bottomRight);
if (~this->currentIndex().isValid())
this->setCurrentIndex(topLeft);
}
//------------------------------------------------------------------------------
void qMRMLTractographyDisplayTreeView::onVisibilityColumnClicked(vtkMRMLNode* node)
......
......@@ -74,6 +74,9 @@ protected:
bool viewportEvent(QEvent* e);
#endif
protected slots:
void dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight );
private:
Q_DECLARE_PRIVATE(qMRMLTractographyDisplayTreeView);
Q_DISABLE_COPY(qMRMLTractographyDisplayTreeView);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment