Skip to content
Snippets Groups Projects
Commit 08312198 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Bugfix in InstrumentView while removing non-existing instrument

parent 0181f53b
No related branches found
No related tags found
No related merge requests found
......@@ -124,8 +124,8 @@ void InstrumentView::onRemoveInstrument()
qDebug() << "InstrumentView::onRemoveInstrument()";
QModelIndex currentIndex = m_instrumentSelector->getSelectionModel()->currentIndex();
qDebug() << "InstrumentView::onRemoveInstrument()" << currentIndex;
m_instrumentModel->removeRows(currentIndex.row(), 1, QModelIndex());
if(currentIndex.isValid())
m_instrumentModel->removeRows(currentIndex.row(), 1, QModelIndex());
}
......
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