Skip to content
Snippets Groups Projects
Commit 2f3e8c79 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

CppTools: Remove QTC_ASSERT


A DiffEditorDocument has an empty file path.

Change-Id: If097497514afa82b1ed220a37cae410f4a81aa9a
Task-number: QTCREATORBUG-13489
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
parent 1b461bea
No related branches found
No related tags found
No related merge requests found
...@@ -693,8 +693,8 @@ void CppModelManager::updateVisibleEditorDocuments() const ...@@ -693,8 +693,8 @@ void CppModelManager::updateVisibleEditorDocuments() const
foreach (Core::IEditor *editor, Core::EditorManager::visibleEditors()) { foreach (Core::IEditor *editor, Core::EditorManager::visibleEditors()) {
if (const Core::IDocument *document = editor->document()) { if (const Core::IDocument *document = editor->document()) {
const QString filePath = document->filePath(); const QString filePath = document->filePath();
QTC_ASSERT(!filePath.isEmpty(), continue); if (!filePath.isEmpty())
visibleDocumentsInEditMode.insert(filePath); visibleDocumentsInEditMode.insert(filePath);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment