Opened 11 years ago

Closed 11 years ago

#388 closed defect (fixed)

preferences window crashes padre

Reported by: pshangov Owned by:
Priority: major Milestone:
Component: editor Version: 0.36
Keywords: Cc:


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.

Change History (2)

comment:1 Changed 11 years ago by szabgab

I think that is the proper way to fix it.
done in r5239

comment:2 Changed 11 years ago by szabgab

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.