Skip to content
Snippets Groups Projects
Commit c48f0aa8 authored by Matthias Puchner's avatar Matthias Puchner
Browse files

add ifdefs for non-python-compilation

parent 94a1a316
No related branches found
No related tags found
1 merge request!624Remove SessionItem from Instrument items
......@@ -192,11 +192,13 @@ void SampleListView::createSampleFromLibrary(const QString& classname, const QSt
void SampleListView::importSampleFromPython()
{
#ifdef BORNAGAIN_PYTHON
const QModelIndex newIndex = m_model->createSampleFromPython(m_document->materialModel());
if (newIndex.isValid()) {
setCurrentIndex(newIndex);
m_document->setModified();
}
#endif
}
QList<QAction*> SampleListView::getOverlayActions(const QModelIndex& index, bool asHover)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment