Skip to content

Commit

Permalink
Show data file path in Data Manager 'Details...' context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
espakm committed Jan 4, 2017
1 parent 18ac511 commit 84d75ed
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,19 @@ void QmitkInfoDialog::OnSelectionChanged( const mitk::DataNode* node )
itk::Indent i(2);
mitk::BaseData* _BaseData = node->GetData();
if(_BaseData)
{
mitk::StringProperty* pathProp = dynamic_cast<mitk::StringProperty*>(_BaseData->GetProperty("path").GetPointer());
if (pathProp)
{
std::string path = pathProp->GetValue();
if (!path.empty())
{
s << i << "File path: " << std::endl
<< i.GetNextIndent() << path << std::endl;
}
}
_BaseData->Print(s, i);
}
m_TextBrowser->setPlainText(QString::fromStdString(s.str()));
}

Expand Down

0 comments on commit 84d75ed

Please sign in to comment.