From 8611aa3f113ce0d9a7cd49e96c86f287ae040cd7 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Wed, 16 Jan 2013 04:17:23 +0100 Subject: [PATCH] Introduce document_t::detach_backup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will reset the document’s backup path but not delete the backup on disk (which can be found via the document’s identifier). This is useful if we wish to dispose the document but reconstruct it later (e.g. during application termination). --- Frameworks/document/src/document.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Frameworks/document/src/document.h b/Frameworks/document/src/document.h index 9eb6992f..2050f32a 100644 --- a/Frameworks/document/src/document.h +++ b/Frameworks/document/src/document.h @@ -212,6 +212,7 @@ namespace document void try_save (document::save_callback_ptr callback); bool save (); bool backup (); + void detach_backup () { _backup_path = NULL_STR; } void set_path (std::string const& newPath); void set_virtual_path (std::string const& virtualPath) { _virtual_path = virtualPath; }