- if the file already exists they get a message box saying, "You do not have permission to save in this directory. See the administrator to obtain permission. Would you like to save in the My Documents folder instead?" Important thing to note here is that this is not my code and happens before the file dialog closes.
- if the file does not already exist then the file dialog closes and control is passed to my program, which tries to open the file for saving and tosses an exception that pops up a dialog saying it couldn't.
I would like both cases to match, one way or the other. I kind of prefer the former I think but at this point getting them to match either way would be a great benefit.
I tried asking in IRC but the only attempt to help I got didn't know what I was talking about apparently because they suggested using wxLogNull to solve the problem.
I've looked for flags to govern this behavior both in documentation and, hoping it was an undocumented feature, in the header files. Can't find it.
Anyone know how I can make them match? Here's where I create the dialog:
Code: Select all
boost::filesystem::path doc_path = wxFileSelector(_("Select pipe system file"), wxT(""), wxT(""), wxT(".pipe"), _("Pipe system file (*.pipe)|*.pipe"), wxFD_SAVE|wxFD_OVERWRITE_PROMPT);