]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/PlatWX.cpp
A little clarification
[wxWidgets.git] / src / stc / PlatWX.cpp
index 4de8021ab35b572bdbb429e9e4112c86b4392170..ceb50296a67a96d97b99a727be1a8e92ae5ff6b9 100644 (file)
@@ -754,6 +754,18 @@ public:
         Hide();
     }
 
         Hide();
     }
 
+        
+    // On OSX and (possibly others) there can still be pending
+    // messages/events for the list control when Scintilla wants to
+    // close it, so do a pending delete of it instead of destroying
+    // immediately.
+    bool Destroy() {
+        if ( !wxPendingDelete.Member(this) )
+            wxPendingDelete.Append(this);
+        return TRUE;
+    }
+
+    
     int IconWidth() {
         wxImageList* il = lv->GetImageList(wxIMAGE_LIST_SMALL);
         if (il != NULL) {
     int IconWidth() {
         wxImageList* il = lv->GetImageList(wxIMAGE_LIST_SMALL);
         if (il != NULL) {