BreakpointModel code assumes IDocument::url() is the same as KTextEditor::Document::url()
The two url()
s differ for untitled (new, unsaved) documents: QUrl("file:///Untitled") != QUrl("")
(see DocumentController::nextEmptyDocumentUrl()
). A breakpoint can be added to an untitled document, but bugs ensue. For example, removing a breakpoint from an untitled document leaves its breakpoint mark intact.