Re: Crash during displaying drop-down menu for - Mailing list pgadmin-hackers

From Andreas Pflug
Subject Re: Crash during displaying drop-down menu for
Date
Msg-id 434830C5.3050406@pse-consulting.de
Whole thread Raw
In response to Re: Crash during displaying drop-down menu for  (Tomasz Rybak <bogomips@post.pl>)
List pgadmin-hackers
Tomasz Rybak wrote:
> I think I know what's causing this crash.
> However, I don't know where to fix it.

Things are quite easy after all.
That lengthy code in line 460ff is for some beautifying of "new xxx"
stuff in the context menu. If there's no object creatable, the "New
Object" menu will be disabled, and so newItem will receive 0 by design
(thus wxASSERT is wrong). In that case, most of the code can be skipped.

Fixed in svn, thanks for reporting.

Regards,
Andreas

pgadmin-hackers by date:

Previous
From: svn@pgadmin.org
Date:
Subject: SVN Commit by andreas: r4523 - in trunk/pgadmin3: . src/include src/include/images src/main src/schema src/slony src/slony/include
Next
From: Tomasz Rybak
Date:
Subject: Hint files installation patch