Revision: 7270
http://svn.sourceforge.net/mahogany/?rev=7270&view=rev
Author: vadz
Date: 2007-05-10 18:07:25 -0700 (Thu, 10 May 2007)
Log Message:
-----------
allow passing wxFILEDLG_USE_FILENAME to wxPSaveFileSelector(), do it when
saving attachments
Modified Paths:
--------------
trunk/M/include/wx/persctrl.h
trunk/M/src/classes/MessageView.cpp
Modified: trunk/M/include/wx/persctrl.h
===================================================================
--- trunk/M/include/wx/persctrl.h 2007-05-06 00:30:47 UTC (rev 7269)
+++ trunk/M/include/wx/persctrl.h 2007-05-11 01:07:25 UTC (rev 7270)
@@ -714,7 +714,7 @@
//
// See wxWindows docs and/or wx/filedlg.h for the meaning of all parameters
// except the first and the last one. Also, "defname" (default value)
-// parameter is overriden by the last entry saved in the config, so it only
+// parameter is overridden by the last entry saved in the config, so it only
// matters when the function is called for the very first time - unless the
// flag wxFILEDLG_USE_FILENAME is given in flags in which case the name is used
// if provided.
@@ -760,10 +760,11 @@
const wxChar *defname = NULL,
const wxChar *extension = NULL,
const wxChar *filter = NULL,
+ int flags = 0,
wxConfigBase *config = NULL)
{
return wxPFileSelector(configPath, title, defpath, defname, extension,
- filter, wxFD_SAVE | wxFD_OVERWRITE_PROMPT,
+ filter, wxFD_SAVE | wxFD_OVERWRITE_PROMPT | flags,
parent, config);
}
Modified: trunk/M/src/classes/MessageView.cpp
===================================================================
--- trunk/M/src/classes/MessageView.cpp 2007-05-06 00:30:47 UTC (rev 7269)
+++ trunk/M/src/classes/MessageView.cpp 2007-05-11 01:07:25 UTC (rev 7270)
@@ -3234,7 +3234,9 @@
GetParentFrame(),
"MimeSave",
_("Save attachment as:"),
- NULL /* no default path */, name, ext
+ NULL /* no default path */, name, ext,
+ NULL /* default filters */,
+ wxFILEDLG_USE_FILENAME
);
}
else
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates