Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv20732/src
Modified Files:
DirManager.cpp
Log Message:
Fix disk space check and increase it to 10MB...1MB isn't even enough to save 1
block file.
Index: DirManager.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/DirManager.cpp,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- DirManager.cpp 13 Mar 2009 06:14:00 -0000 1.84
+++ DirManager.cpp 9 Apr 2009 07:31:38 -0000 1.85
@@ -122,20 +122,18 @@
for(i=0; i< 256; i++) dirTopPool[i]=0;
}
+ //create a temporary null log to capture the log dialog
+ //that wxGetDiskSpace creates. It gets destroyed when
+ //it goes out of context.
+ //JKC: Please explain why.
+ wxLogNull logNo;
+
// Make sure there is plenty of space for temp files
wxLongLong freeSpace = 0;
-
- {
- //create a temporary null log to capture the log dialog
- //that wxGetDiskSpace creates. It gets destroyed when
- //it goes out of context.
- //JKC: Please explain why.
- wxLogNull logNo;
- if (wxGetDiskSpace(globaltemp, NULL, &freeSpace)) {
- if (freeSpace < 1048576) {
- ShowWarningDialog(NULL, wxT("DiskSpaceWarning"),
- _("Warning: there is very little free disk space
left on this volume.\nPlease select another temporary directory in your
preferences."));
- }
+ if (wxGetDiskSpace(globaltemp, NULL, &freeSpace)) {
+ if (freeSpace < wxLongLong(wxLL(10 * 1048576))) {
+ ShowWarningDialog(NULL, wxT("DiskSpaceWarning"),
+ _("Warning: there is very little free disk space
left on this volume.\nPlease select another temporary directory in your
preferences."));
}
}
}
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs