Update of /cvsroot/mahogany/M/src/adb
In directory sc8-pr-cvs1:/tmp/cvs-serv7373/src/adb
Modified Files:
ProvFC.cpp
Log Message:
create the underlying file when the book is created (fixes bug 818)
Index: ProvFC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/adb/ProvFC.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -b -u -2 -r1.42 -r1.43
--- ProvFC.cpp 18 Sep 2003 16:30:47 -0000 1.42
+++ ProvFC.cpp 1 Oct 2003 23:22:00 -0000 1.43
@@ -745,4 +745,11 @@
bool FCBook::IsReadOnly() const
{
+ // flush config forcing the file creation, otherwise our we would always
+ // return true because wxFile::Access() fails for non existing file!
+ if ( !wxFile::Exists(m_strFile) )
+ {
+ m_pConfig->Flush();
+ }
+
return !wxFile::Access(m_strFile, wxFile::write);
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates