diff --git a/src/plugins/texteditor/basetextmark.cpp b/src/plugins/texteditor/basetextmark.cpp index c4bbbb32277d83cc20b8e8743636b20b715dd417..94c03d5455a80473a68c73e184c4df10ee47bdd3 100644 --- a/src/plugins/texteditor/basetextmark.cpp +++ b/src/plugins/texteditor/basetextmark.cpp @@ -61,8 +61,13 @@ void BaseTextMark::init() void BaseTextMark::editorOpened(Core::IEditor *editor) { +#ifdef Q_OS_WIN + if (m_fileName.compare(editor->file()->fileName(), Qt::CaseInsensitive)) + return; +#else if (editor->file()->fileName() != m_fileName) return; +#endif if (ITextEditor *textEditor = qobject_cast<ITextEditor *>(editor)) { if (m_markableInterface == 0) { // We aren't added to something m_markableInterface = textEditor->markableInterface();