[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : luke
Repository : xara
Revision   : 774
Date       : Wed Apr  5 17:49:59 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/camdoc.cpp
   M /Trunk/XaraLX/wxOil/camdoc.h

Disable to 'do you want to save' dialog on document close


Diff:
Index: Trunk/XaraLX/wxOil/camdoc.h
===================================================================
--- Trunk/XaraLX/wxOil/camdoc.h	(revision 773)
+++ Trunk/XaraLX/wxOil/camdoc.h	(revision 774)
@@ -206,7 +206,7 @@
 	virtual bool DefaultDocumentRequired(CCLexFile* pFile, UINT32 nPrefFilter);
 	virtual bool LoadDefaultDocument();
 	virtual bool GeneralOpenDocument(CCLexFile* pFile, UINT32 nPrefFilter);
-	virtual bool SaveModified();
+	virtual bool OnSaveModified();
 	virtual bool DoSave(LPCTSTR lpszPathName, BOOL bReplace = TRUE);
 	virtual bool DeleteContents();
 
Index: Trunk/XaraLX/wxOil/camdoc.cpp
===================================================================
--- Trunk/XaraLX/wxOil/camdoc.cpp	(revision 773)
+++ Trunk/XaraLX/wxOil/camdoc.cpp	(revision 774)
@@ -1510,9 +1510,14 @@
 
 ********************************************************************************************/
 
-bool CCamDoc::SaveModified()
+bool CCamDoc::OnSaveModified()
 {
 	PORTNOTETRACE("other","CCamDoc::SaveModified - do nothing");
+
+	// This here just to disable the "do you wanna save" dialog
+	// REMOVE WHEN IMPLEMENTING THIS FUNCTION!
+	SetModifiedFlag(FALSE);
+	
 #ifndef EXCLUDE_FROM_XARALX
 #ifdef STANDALONE
 	// Don't prompt in standalone version - we can't save anyway


Xara