]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/evtloop.h
Moved the cleanup code to an EVT_WINDOW_DESTROY handler.
[wxWidgets.git] / include / wx / evtloop.h
index 2a71defd7a741c8144070a3012d04452708aa5f5..4ff934f8a719fb431bd037c35510cee125a22d13 100644 (file)
@@ -47,6 +47,9 @@ public:
     // return currently active (running) event loop, may be NULL
     static wxEventLoop *GetActive() { return ms_activeLoop; }
 
+    // set currently active (running) event loop
+    static void SetActive(wxEventLoop* loop) { ms_activeLoop = loop; }
+
 protected:
     // the pointer to the port specific implementation class
     class WXDLLEXPORT wxEventLoopImpl *m_impl;