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;