mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-21 06:45:27 -06:00
fix bug
Если секционированая таблица последняя списке таблиц узла дерева, то не работало обновление Sql окна.
This commit is contained in:
parent
47885a5c61
commit
babb16434f
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);
|
wxString table = statistics->GetItemText(event.GetIndex(), 0);
|
||||||
wxCookieType cookie;
|
wxCookieType cookie;
|
||||||
wxTreeItemId idstop= browser->GetNextSibling(item);
|
wxTreeItemId idstop;
|
||||||
if (!idstop.IsOk()) return;
|
//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);
|
//item = browser->GetFirstChild(item, cookie);
|
||||||
wxTreeItemId id = item;
|
wxTreeItemId id = item;
|
||||||
wxString fn = "";
|
wxString fn = "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue