summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/textmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/textmark.cpp')
-rw-r--r--src/plugins/texteditor/textmark.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/textmark.cpp b/src/plugins/texteditor/textmark.cpp
index 2a33f888d7..9f8a729fa8 100644
--- a/src/plugins/texteditor/textmark.cpp
+++ b/src/plugins/texteditor/textmark.cpp
@@ -214,10 +214,10 @@ void TextMarkRegistry::editorOpened(Core::IEditor *editor)
auto document = qobject_cast<TextDocument *>(editor ? editor->document() : 0);
if (!document)
return;
- if (!m_marks.contains(FileName::fromString(document->filePath())))
+ if (!m_marks.contains(document->filePath()))
return;
- foreach (TextMark *mark, m_marks.value(FileName::fromString(document->filePath())))
+ foreach (TextMark *mark, m_marks.value(document->filePath()))
document->addMark(mark);
}