Skip site navigation (1) Skip section navigation (2)

SVN Commit by andreas: r4637 - in trunk/pgadmin3/src: dlg frm

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by andreas: r4637 - in trunk/pgadmin3/src: dlg frm
Date: 2005-11-02 00:00:24
Message-ID: 200511020000.jA200OTL026714@developer.pgadmin.org (view raw or flat)
Thread:
Lists: 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

Next:From: Andreas PflugDate: 2005-11-02 00:01:11
Subject: Re: RC1 uploaded
Previous:From: Dave PageDate: 2005-11-01 19:35:46
Subject: FW: RC1 uploaded

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group