mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
Fast dlgTable for GTK. Fix errors.
This commit is contained in:
parent
e65781aa65
commit
c78b09ad2e
8 changed files with 64 additions and 27 deletions
|
|
@ -68,13 +68,19 @@ int ctlComboBoxFix::FillOidKey(pgConn *conn, const wxChar *qry)
|
|||
int cnt = 0;
|
||||
pgSetIterator set(conn->ExecuteSet(qry));
|
||||
Freeze();
|
||||
std::vector<void*> pointer;
|
||||
wxArrayString name;
|
||||
while (set.RowsLeft())
|
||||
{
|
||||
OID oid = set.GetOid(0);
|
||||
wxString txt = set.GetVal(1);
|
||||
Append(txt, oid);
|
||||
name.Add(txt);
|
||||
pointer.push_back((void*) oid);
|
||||
cnt++;
|
||||
}
|
||||
|
||||
if (cnt>0) wxComboBox::Append(name, pointer.data());
|
||||
|
||||
Thaw();
|
||||
return cnt;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue