pgAdmin III commit: Fix connection color on the query tool

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема pgAdmin III commit: Fix connection color on the query tool
Дата
Msg-id 201009250703.o8P73xCn086124@gothos.postgresql.org
обсуждение исходный текст
Список pgadmin-hackers
Fix connection color on the query tool

The color used the old connection informations. In fact, we call two times the
OnChangeConnection() method. First time to choose another connection and add
the new one to the combobox, and another time to really change the connection.
IOW, we change the colors despite the fact we actually didn't change the
connection. So we can't check the connection with the connection global
variable. We need to give the connection local variable to the
GetServerColour() method. So, this method gets a connection parameter.

Report from Valentine Gogichashvili.

Fixed #241.

Branch
------
REL-1_12_0_PATCHES

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=787c56bba8124f79d2d1a16e5348e103aec89d78

Modified Files
--------------
pgadmin/frm/frmQuery.cpp       |   10 +++++-----
pgadmin/include/frm/frmQuery.h |    2 +-
2 files changed, 6 insertions(+), 6 deletions(-)


В списке pgadmin-hackers по дате отправления:

Предыдущее
От: "pgAdmin Trac"
Дата:
Сообщение: [pgAdmin III] #241: Connection color is not correctly changed in query windows connection drop-down
Следующее
От: "pgAdmin Trac"
Дата:
Сообщение: Re: [pgAdmin III] #241: Connection color is not correctly changed in query windows connection drop-down