[pgadmin-hackers] pgAdmin III commit: Fix for failed new connection in query tool

2010-09-07 Thread Guillaume Lelarge
Fix for failed new connection in query tool When a user tries to open a new connection in the query tool, and that the new connection fails, the conn variable still has the invalid connection handle. And this prevents us from getting back to the previous older one. So, we need to use a temporary v

[pgadmin-hackers] pgAdmin III commit: Fix for failed new connection in query tool

2010-09-07 Thread Guillaume Lelarge
Fix for failed new connection in query tool When a user tries to open a new connection in the query tool, and that the new connection fails, the conn variable still has the invalid connection handle. And this prevents us from getting back to the previous older one. So, we need to use a temporary v