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

InstrumentListModel::onInstrumentNameChanged rm const_cast

parent 0c7df595
No related branches found
No related tags found
1 merge request!1631sort data examples; split file import 1/2 D; other minor cleanup
......@@ -177,6 +177,6 @@ QModelIndex InstrumentListModel::addNewInstrument()
void InstrumentListModel::onInstrumentNameChanged(const InstrumentItem* instrument)
{
const auto instruments = m_ec->instrumentModel()->instrumentItems();
if (const auto row = instruments.indexOf(const_cast<InstrumentItem*>(instrument)); row != -1)
if (const auto row = instruments.indexOf(instrument); row != -1)
emit dataChanged(index(row, 0), index(row, 0));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment