From a49d12fe1a802d8ad4206d22e2872dcfc816ef9e Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Sat, 14 Dec 2013 16:14:33 +0800 Subject: [PATCH] Bug #145 When opening with xmlcopyeditor associated file when double-clicking on it opens twice --- src/xmlcopyeditor.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/xmlcopyeditor.h b/src/xmlcopyeditor.h index a6599c2..b0fdb67 100644 --- a/src/xmlcopyeditor.h +++ b/src/xmlcopyeditor.h @@ -379,7 +379,19 @@ class MyFrame : public wxFrame std::map > > promptMap; std::map validationPresetMap; +#ifdef __WXMSW__ + struct MyCompare + : public std::binary_function + { + bool operator() ( const wxString &x, const wxString &y ) const + { + return x.CmpNoCase ( y ) < 0; + } + }; + std::set openFileSet; +#else std::set openFileSet; +#endif std::set openLargeFileSet; std::vector tempFileVector, fileQueue; int documentCount,