From 311309af8f3cef59532c7f1db2dcc6ff944c80a8 Mon Sep 17 00:00:00 2001 From: dpage Date: Thu, 7 May 2009 19:56:43 +0000 Subject: [PATCH] Avoid flashing a dialogue when closing the debugger. Doesn't eliminate all cases where this may happen, but does get one common one. [Ashesh Vashi] git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7857 a7884b65-44f6-0310-8a51-81a127f17b15 --- pgadmin/debugger/dlgDirectDbg.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pgadmin/debugger/dlgDirectDbg.cpp b/pgadmin/debugger/dlgDirectDbg.cpp index 7569eb7fa..96e979aa8 100644 --- a/pgadmin/debugger/dlgDirectDbg.cpp +++ b/pgadmin/debugger/dlgDirectDbg.cpp @@ -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(); } -- 2.39.5