Revision: 875
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=875&view=rev
Author: pstieber
Date: 2011-08-05 01:33:53 +0000 (Fri, 05 Aug 2011)
Log Message:
-----------
Updated string code.
Modified Paths:
--------------
trunk/jazz/src/FileSelector.cpp
Modified: trunk/jazz/src/FileSelector.cpp
===================================================================
--- trunk/jazz/src/FileSelector.cpp 2011-08-05 01:25:01 UTC (rev 874)
+++ trunk/jazz/src/FileSelector.cpp 2011-08-05 01:33:53 UTC (rev 875)
@@ -77,16 +77,16 @@
path = wxPathOnly(DefaultFileName);
int flags = save ? wxFD_SAVE : wxFD_OPEN;
- wxString s = wxFileSelector(title, path, file, 0, Extension, flags);
+ wxString s = wxFileSelector(title, path, file, wxEmptyString, Extension, flags);
// add extension if missing
- if (!s.empty() && Extension)
+ if (!s.empty() && !Extension.empty())
{
s = add_default_ext(s, Extension);
}
// warn if overwriting existent file
- if (s && save)
+ if (!s.empty() && save)
{
if (wxFileExists(s))
{
@@ -101,7 +101,7 @@
}
}
- if (s && !save && changed)
+ if (!s.empty() && !save && changed)
{
wxString buf;
buf << DefaultFileName;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|