Commit 2f3e8c79 authored by Nikolai Kosjar's avatar Nikolai Kosjar

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
......@@ -693,8 +693,8 @@ void CppModelManager::updateVisibleEditorDocuments() const
foreach (Core::IEditor *editor, Core::EditorManager::visibleEditors()) {
if (const Core::IDocument *document = editor->document()) {
const QString filePath = document->filePath();
QTC_ASSERT(!filePath.isEmpty(), continue);
visibleDocumentsInEditMode.insert(filePath);
if (!filePath.isEmpty())
visibleDocumentsInEditMode.insert(filePath);
}
}
......
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