mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
fix bug
Если секционированая таблица последняя списке таблиц узла дерева, то не работало обновление Sql окна.
This commit is contained in:
parent
1ae40f28af
commit
41d6de3f1a
1 changed files with 11 additions and 2 deletions
|
|
@ -310,8 +310,17 @@ void frmMain::OnStatSelChanged(wxListEvent& event)
|
|||
{
|
||||
wxString table = statistics->GetItemText(event.GetIndex(), 0);
|
||||
wxCookieType cookie;
|
||||
wxTreeItemId idstop= browser->GetNextSibling(item);
|
||||
if (!idstop.IsOk()) return;
|
||||
wxTreeItemId idstop;
|
||||
//if (!idstop.IsOk()) return;
|
||||
wxTreeItemId p = item;
|
||||
wxTreeItemId toFind;
|
||||
do
|
||||
{
|
||||
toFind = browser->GetNextSibling(p);
|
||||
p = browser->GetItemParent(p);
|
||||
} while (p.IsOk() && !toFind.IsOk());
|
||||
idstop = toFind;
|
||||
|
||||
//item = browser->GetFirstChild(item, cookie);
|
||||
wxTreeItemId id = item;
|
||||
wxString fn = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue