diff --git a/src/plugins/designer/qtcreatorintegration.cpp b/src/plugins/designer/qtcreatorintegration.cpp index ea51e896a5cd06434cae6d6e2a13bc0a1bc002a2..abe3881d31c722a1d9c09d772b17698ac6064ae4 100644 --- a/src/plugins/designer/qtcreatorintegration.cpp +++ b/src/plugins/designer/qtcreatorintegration.cpp @@ -331,11 +331,15 @@ static Document::Ptr addDefinition(const CPlusPlus::Snapshot &docTable, const QFileInfo sourceFI(doc->fileName()); // we take only those documents which have the same filename if (headerBaseName == sourceFI.baseName()) { + // + // ### FIXME: change this to use the Refactoring changes. + // + if (ITextEditable *editable = editableAt(doc->fileName(), 0, 0)) { // // ### FIXME: use the InsertionPointLocator to insert at the correct place. - // + // (we'll have to extend that class first to do definition insertions) const QString contents = editable->contents(); int column;