mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-07-11 22:02:34 -06:00
fix bug
Устранено падение по нажатию F4 возникающее при определенных пользовательских настройках
This commit is contained in:
parent
2c291595c0
commit
f177940bd4
2 changed files with 4 additions and 1 deletions
|
|
@ -2515,6 +2515,7 @@ void frmQuery::OnAutoEditObject(wxCommandEvent &event)
|
|||
if (!mainForm) return;
|
||||
//parent->SetCurrentNode(parent->GetBrowser()->GetRootItem(), path);
|
||||
pgObject *obj = mainForm->GetBrowser()->GetObject(mainForm->GetBrowser()->GetSelection());
|
||||
if (!obj) return;
|
||||
pgFunction *fun=(pgFunction *)obj;//obj->Show
|
||||
//mainForm.propFactory->StartDialog(mainForm, obj);
|
||||
//showMessage(obj->GetTypeName());
|
||||
|
|
@ -2540,11 +2541,13 @@ void frmQuery::OnAutoEditObject(wxCommandEvent &event)
|
|||
pgObject *o=mainForm->GetBrowser()->GetObject(matchItem);
|
||||
//mainForm->GetBrowser()->SelectItem(o->GetId());
|
||||
//showMessage(o->GetName().Lower());
|
||||
if (!o) return;
|
||||
if (o->GetName().Lower()==selText.Lower()) {
|
||||
|
||||
//obj = mainForm->GetBrowser()->GetObject(mainForm->GetBrowser()->GetSelection());
|
||||
mainForm->execSelChange(matchItem,false);
|
||||
obj=o;
|
||||
//obj=o;
|
||||
obj = mainForm->GetBrowser()->GetObject(matchItem);
|
||||
if (!dlgProperty::EditObjectDialog(mainForm, 0, obj))
|
||||
mainForm->CheckAlive();
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue