Ticket #388 (closed defect: fixed)
preferences window crashes padre
|Reported by:||pshangov||Owned by:|
using latest padre (0.36) from svn on strawberry perl.
Padre::Wx::Editor gets the config object by calling "$self->main->congig". However, Padre::Wx::Dialog::Preferences, lines 213-219, creates an editor object "my $editor = Padre::Wx::Editor->new($editor_panel);" whose grandparent is a fresh notebook object (and not Padre::Wx::Main), which does not have a "config" method, which causes Padre to crash (Can't find method 'config' via Wx::Notebook).
The simple solution is to replace "$self->main->config" in Padre::Wx::Editor with "Padre->ide->config". I would have done this myself, but have not followed Padre development for a while and I am not sure if this is still considered the proper way to get the config object.