Commit 4b19bdd6 authored by Eike Ziller's avatar Eike Ziller
Browse files

Resolve links and normalize file names when opening editors again.

For the check if a certain editor is already open.
Broke with 8c2e3fd2


Task-number: QTCREATORBUG-10836
Task-number: QTCREATORBUG-10945
Task-number: QTCREATORBUG-10994
Change-Id: Id1b20cd935986306f85a659f19dff52f2ee38052
Reviewed-by: default avatarDaniel Teske <>
Reviewed-by: default avatarDavid Schulz <>
Reviewed-by: default avatarRobert Loehning <>
parent 0c66e74c
......@@ -29,6 +29,7 @@
#include "documentmodel.h"
#include "ieditor.h"
#include <coreplugin/documentmanager.h>
#include <coreplugin/idocument.h>
#include <utils/qtcassert.h>
......@@ -194,8 +195,9 @@ int DocumentModel::indexOfFilePath(const QString &filePath) const
if (filePath.isEmpty())
return -1;
const QString fixedPath = DocumentManager::fixFileName(filePath, DocumentManager::KeepLinks);
for (int i = 0; i < d->m_documents.count(); ++i) {
if (d->>fileName() == filePath)
if (DocumentManager::fixFileName(d->>fileName(), DocumentManager::KeepLinks) == fixedPath)
return i;
return -1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment