src/toolsets/basictoolset.cpp

changeset 1258
f5921a474d57
parent 1257
0d42a1ebd954
child 1261
5d2c9d36da9d
equal deleted inserted replaced
1257:0d42a1ebd954 1258:f5921a474d57
96 { 96 {
97 for (LDSubfileReference* reference : filterByType<LDSubfileReference> (selectedObjects())) 97 for (LDSubfileReference* reference : filterByType<LDSubfileReference> (selectedObjects()))
98 { 98 {
99 // Get the index of the subfile so we know where to insert the 99 // Get the index of the subfile so we know where to insert the
100 // inlined contents. 100 // inlined contents.
101 QPersistentModelIndex referenceIndex = currentDocument()->index(reference->lineNumber()); 101 QPersistentModelIndex referenceIndex = currentDocument()->indexOf(reference);
102 int row = referenceIndex.row(); 102 int row = referenceIndex.row();
103 103
104 if (referenceIndex.isValid()) 104 if (referenceIndex.isValid())
105 { 105 {
106 Model inlined {m_documents}; 106 Model inlined {m_documents};

mercurial