Bug #145 When opening with xmlcopyeditor associated file when double-clicking on it opens twice

This commit is contained in:
Zane U. Ji 2013-12-14 16:14:33 +08:00
parent bf9eea070e
commit a49d12fe1a
1 changed files with 12 additions and 0 deletions

View File

@ -379,7 +379,19 @@ class MyFrame : public wxFrame
std::map<std::string, std::map<std::string, std::set<std::string> > > std::map<std::string, std::map<std::string, std::set<std::string> > >
promptMap; promptMap;
std::map<int, wxString> validationPresetMap; std::map<int, wxString> validationPresetMap;
#ifdef __WXMSW__
struct MyCompare
: public std::binary_function<wxString, wxString, bool>
{
bool operator() ( const wxString &x, const wxString &y ) const
{
return x.CmpNoCase ( y ) < 0;
}
};
std::set<wxString, MyCompare> openFileSet;
#else
std::set<wxString> openFileSet; std::set<wxString> openFileSet;
#endif
std::set<wxString> openLargeFileSet; std::set<wxString> openLargeFileSet;
std::vector<wxString> tempFileVector, fileQueue; std::vector<wxString> tempFileVector, fileQueue;
int documentCount, int documentCount,