]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/net/socket.cpp
Fix warnings in the MSW IE backend.
[wxWidgets.git] / tests / net / socket.cpp
index 67d8b5157b4cd134282f05e11381d1fe2faa8c0b..aece666280da65bf2d44826d8c852870c40ecd19 100644 (file)
@@ -68,17 +68,23 @@ private:
         {
             m_useLoop = useLoop;
             if ( useLoop )
+            {
+                m_evtLoopOld = wxEventLoopBase::GetActive();
                 SetActive(this);
+            }
         }
 
         virtual ~SocketTestEventLoop()
         {
             if ( m_useLoop )
-                SetActive(NULL);
+            {
+                wxEventLoopBase::SetActive(m_evtLoopOld);
+            }
         }
 
     private:
         bool m_useLoop;
+        wxEventLoopBase *m_evtLoopOld;
     };
 
     // get the address to connect to, if NULL is returned it means that the