forked from qt-creator/qt-creator
Hide some diff editor controls when diff editor is bound to a file.
Remove unnecessary anymore "ignoreWhitespace" argument from functions which read a patch file. Transfer the ownership of reloader into controller. Task-number: QTCREATORBUG-13250 Change-Id: I68183005b845d6ece9ea2be9888abc8597310426 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -115,5 +115,14 @@ DiffEditorDocument *DiffEditorManager::findOrCreate(const QString &documentId, c
|
||||
return document;
|
||||
}
|
||||
|
||||
void DiffEditorManager::removeDocument(DiffEditorDocument *document)
|
||||
{
|
||||
if (!instance()->documentToId.contains(document))
|
||||
return;
|
||||
const QString documentId = instance()->documentToId.value(document);
|
||||
instance()->documentToId.remove(document);
|
||||
instance()->idToDocument.remove(documentId);
|
||||
}
|
||||
|
||||
|
||||
} // namespace DiffEditor
|
||||
|
||||
Reference in New Issue
Block a user