diff options
Diffstat (limited to 'src/plugins/texteditor/basetextmark.cpp')
-rw-r--r-- | src/plugins/texteditor/basetextmark.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/texteditor/basetextmark.cpp b/src/plugins/texteditor/basetextmark.cpp index 422649c049..0e3b55d357 100644 --- a/src/plugins/texteditor/basetextmark.cpp +++ b/src/plugins/texteditor/basetextmark.cpp @@ -60,7 +60,7 @@ void BaseTextMarkRegistry::add(BaseTextMark *mark) if (markableInterface->addMark(mark, mark->m_line)) { mark->m_markableInterface = markableInterface; // Handle reload of text documents, readding the mark as necessary - connect(textEditor->file(), SIGNAL(reloaded()), + connect(textEditor->document(), SIGNAL(reloaded()), this, SLOT(documentReloaded()), Qt::UniqueConnection); break; } @@ -79,14 +79,14 @@ void BaseTextMarkRegistry::editorOpened(Core::IEditor *editor) ITextEditor *textEditor = qobject_cast<ITextEditor *>(editor); if (!textEditor) return; - if (!m_marks.contains(Utils::FileName::fromString(editor->file()->fileName()))) + if (!m_marks.contains(Utils::FileName::fromString(editor->document()->fileName()))) return; // Handle reload of text documents, readding the mark as necessary - connect(textEditor->file(), SIGNAL(reloaded()), + connect(textEditor->document(), SIGNAL(reloaded()), this, SLOT(documentReloaded()), Qt::UniqueConnection); - foreach (BaseTextMark *mark, m_marks.value(Utils::FileName::fromString(editor->file()->fileName()))) { + foreach (BaseTextMark *mark, m_marks.value(Utils::FileName::fromString(editor->document()->fileName()))) { if (mark->m_markableInterface == 0) { // We aren't added to something ITextMarkable *markableInterface = textEditor->markableInterface(); if (markableInterface->addMark(mark, mark->m_line)) |