Avoid flashing a dialogue when closing the debugger. Doesn't eliminate all cases...
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 7 May 2009 19:56:43 +0000 (19:56 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 7 May 2009 19:56:43 +0000 (19:56 +0000)
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7857 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/debugger/dlgDirectDbg.cpp

index 7569eb7fa67d02fbd537a64c34ffacce598973f8..96e979aa8a5083637fb84d9707503794fef5dddf 100644 (file)
@@ -769,6 +769,11 @@ void dlgDirectDbg::OnTargetComplete( wxCommandEvent & event )
         m_codeWindow->m_targetComplete = true;
         m_codeWindow->disableTools( );
     }
+
+    // Do not show if aborted
+    if ( m_codeWindow && m_codeWindow->m_targetAborted )
+        return;
+
     this->Show( true );
     this->SetFocus();
 }