Ensure the debugger exists correctly [Ashesh Vashi]
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Wed, 29 Apr 2009 11:07:15 +0000 (11:07 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Wed, 29 Apr 2009 11:07:15 +0000 (11:07 +0000)
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7826 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/debugger/dlgDirectDbg.cpp

index fde1f0faeca9ec0afda3c944d043918f64db1b6a..099e076ca3dc4e5dab7717002d35c56c38620056 100644 (file)
@@ -414,6 +414,14 @@ void dlgDirectDbg::OnClose( wxCloseEvent & event )
         event.Skip();
     else
         m_parent->Close();
+
+    if ( this->IsModal() )
+    {
+        if ( m_cancelled )
+            EndModal( wxID_CANCEL );
+        else
+            EndModal( wxID_OK);
+    }
 }
 
 ////////////////////////////////////////////////////////////////////////////////