forked from qt-creator/qt-creator
Introduce case insensitive matching of text marks on Windows.
For CDB debugger location marks.
This commit is contained in:
@@ -61,8 +61,13 @@ void BaseTextMark::init()
|
|||||||
|
|
||||||
void BaseTextMark::editorOpened(Core::IEditor *editor)
|
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)
|
if (editor->file()->fileName() != m_fileName)
|
||||||
return;
|
return;
|
||||||
|
#endif
|
||||||
if (ITextEditor *textEditor = qobject_cast<ITextEditor *>(editor)) {
|
if (ITextEditor *textEditor = qobject_cast<ITextEditor *>(editor)) {
|
||||||
if (m_markableInterface == 0) { // We aren't added to something
|
if (m_markableInterface == 0) { // We aren't added to something
|
||||||
m_markableInterface = textEditor->markableInterface();
|
m_markableInterface = textEditor->markableInterface();
|
||||||
|
|||||||
Reference in New Issue
Block a user