Skip to content
Snippets Groups Projects
Commit 925465c8 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

disambiguate sampleItem vs multilayer

parent 3bfca808
No related branches found
No related tags found
1 merge request!907Core cleanup
......@@ -168,16 +168,16 @@ QModelIndex SampleListModel::createSampleFromPython()
return {}; // any messages already shown to user; no dlg necessary anymore
auto* sample = PyImportAssistant::createMultiLayerItem(*multiLayer);
if (!sample)
auto* sampleItem = PyImportAssistant::createMultiLayerItem(*multiLayer);
if (!sampleItem)
return {}; // any messages already shown to user; no dlg necessary anymore
sample->setDescription("Imported from python code");
sampleItem->setDescription("Imported from python code");
const int row = m_multiLayerItems->multiLayerItems().size();
beginInsertRows(QModelIndex(), row, row);
m_multiLayerItems->addMultiLayer(sample);
m_multiLayerItems->addMultiLayer(sampleItem);
endInsertRows();
return indexForItem(sample);
return indexForItem(sampleItem);
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment