Обсуждение: Possible frmMain.tv_NodeClick bug

Поиск
Список
Период
Сортировка

Possible frmMain.tv_NodeClick bug

От
Jean-Michel POURE
Дата:
Hi Dave,

I noticed that "frmMain.tv_NodeClick frmMain.tv.SelectedItem" was used
several times to simulate a node click.

When opening several objects simultaneously, this might generate bugs. What
do you think?

Cheers,
Jean-Michel POURE

Re: Possible frmMain.tv_NodeClick bug

От
Dave Page
Дата:

> -----Original Message-----
> From: Jean-Michel POURE [mailto:jm.poure@freesurf.fr]
> Sent: 04 March 2002 18:26
> To: Dave Page
> Cc: pgadmin-hackers@postgresql.org
> Subject: [pgadmin-hackers] Possible frmMain.tv_NodeClick bug
>
>
> Hi Dave,
>
> I noticed that "frmMain.tv_NodeClick frmMain.tv.SelectedItem"
> was used
> several times to simulate a node click.
>
> When opening several objects simultaneously, this might
> generate bugs. What
> do you think?

No, I don't think that will cause a problem as it will always redisplay
whatever is currently selected in the treeview, not the opened object.

I am considering another related fix though - the code that searches for the
nodes to add, drop or update is no longer required *I think*. Originally,
objects in pgSchema had no knowledge of their parents in the hierarchy, so
there was no easy way to locate the precise node in the tree. Nowadays, each
object has a Database, and possibly Table property so we should be able to
precisely figure out the correct node just by checking the relevant
properties.

Regards, Dave.