summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppsourceprocessor_test.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2014-11-26 17:18:47 +0100
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2014-11-27 11:55:03 +0100
commit0ef06c75233c73589e045760415e9de19c53c349 (patch)
treef6c46923031dc076e18ef2f83b442762024c6c7c /src/plugins/cpptools/cppsourceprocessor_test.cpp
parent5cc3378858c62dfd9b0a6190b82b9f1762a20d0b (diff)
downloadqt-creator-0ef06c75233c73589e045760415e9de19c53c349.tar.gz
Core: Normalize given filePath in DocumentModel
TextDocument::open() sets a clean absolute path for the document, but DocumentModel::documentForFilePath() did not normalize before comparing. This resulted in the creation of multiple TextDocuments and Widgets for the same path. Was re-producible with: 1. Open the locator 2. Type "f a.cpp" and Enter 3. Go to 1. Point 2 lead to an EditorManager::openEditor() call with an unclean path. The second iteration triggered an QTC_ASSERT in CppModelManager. Regression introduced by: commit 292cf6c9e87d2c293be6eb2808530dbbd728c8b6 Algorithms for DocumentModel Change-Id: I82fbc39251e48c1c97d6933857de172818d73f13 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cppsourceprocessor_test.cpp')
0 files changed, 0 insertions, 0 deletions