SVN Commit by andreas: r4637 - in trunk/pgadmin3/src: dlg frm - Mailing list pgadmin-hackers

From svn@pgadmin.org
Subject SVN Commit by andreas: r4637 - in trunk/pgadmin3/src: dlg frm
Date
Msg-id 200511020000.jA200OTL026714@developer.pgadmin.org
Whole thread Raw
List pgadmin-hackers
Author: andreas
Date: 2005-11-02 00:00:15 +0000 (Wed, 02 Nov 2005)
New Revision: 4637

Modified:
   trunk/pgadmin3/src/dlg/dlgSelectConnection.cpp
   trunk/pgadmin3/src/frm/frmQuery.cpp
Log:
fix query tool connect annoyance

Modified: trunk/pgadmin3/src/dlg/dlgSelectConnection.cpp
===================================================================
--- trunk/pgadmin3/src/dlg/dlgSelectConnection.cpp    2005-11-01 20:26:38 UTC (rev 4636)
+++ trunk/pgadmin3/src/dlg/dlgSelectConnection.cpp    2005-11-02 00:00:15 UTC (rev 4637)
@@ -151,12 +151,13 @@
         if (s->GetConnected() && s->GetConnection()->GetHost() == conn->GetHost() && s->GetConnection()->GetPort() ==
conn->GetPort())
         {
              cbServer->SetSelection(cbServer->GetCount()-1);
-             wxCommandEvent ev;
-             OnChangeServer(ev);
         }
     }
     cbServer->SetFocus();
-    btnOK->Disable();
+
+    wxCommandEvent ev;
+    OnChangeServer(ev);
+
     return ShowModal();
 }


Modified: trunk/pgadmin3/src/frm/frmQuery.cpp
===================================================================
--- trunk/pgadmin3/src/frm/frmQuery.cpp    2005-11-01 20:26:38 UTC (rev 4636)
+++ trunk/pgadmin3/src/frm/frmQuery.cpp    2005-11-02 00:00:15 UTC (rev 4637)
@@ -404,6 +404,7 @@
             {
                 cbConnection->Insert(conn->GetName(), sel, (void*)conn);
                 cbConnection->SetSelection(sel);
+                OnChangeConnection(ev);
             }
             else
                 rc = wxID_CANCEL;


pgadmin-hackers by date:

Previous
From: "Dave Page"
Date:
Subject: FW: RC1 uploaded
Next
From: Andreas Pflug
Date:
Subject: Re: RC1 uploaded