Don't delete TextDocuments when closing last view that where modified 17
authorNiko Sams <niko.sams@gmail.com>
Sun, 18 Jul 2010 19:25:27 +0000 (21:25 +0200)
committerNiko Sams <niko.sams@gmail.com>
Sun, 18 Jul 2010 19:25:27 +0000 (21:25 +0200)
commit00ee62c4dd4b60123de3761bb89a192b04dce556
tree4dd2efbba2d15dde6193db9aff1fb0f0d438bcf5
parentd76fa34be2ea711817df38c9cb45a89df196cebf
Don't delete TextDocuments when closing last view that where modified

With this the undo history isn't reset when closing and reopening
a file.
To waste not too much memory this is only done for documents that where
edited by the user.
shell/partdocument.cpp
shell/textdocument.cpp
shell/textdocument.h
sublime/document.cpp
sublime/document.h