Ticket #1369 (closed defect: fixed)
ToDo Panel Crashes Padre
| Reported by: | bowtie | Owned by: | alias |
|---|---|---|---|
| Priority: | blocker | Milestone: | |
| Component: | TODO List | Version: | 0.93 |
| Keywords: | Cc: |
Description
On starting Padre, and selecting a session to open causes the following
Can't call method "document" without a package or object reference at /usr/src/Padre/Padre/lib/Padre/Wx/TodoList.pm line 227.
Perl exited with active threads:
7 running and unjoined
0 finished and unjoined
0 running and detached
So now I can't use the ToDo Panel
Change History
comment:3 Changed 18 months ago by bowtie
perl dev -a -t Padre::Wx:TodoList --die
Can't call method "document" without a package or object reference at
/usr/src/Padre/Padre/lib/Padre/Wx/TodoList.pm line 223 (#1)
(F) You used the syntax of a method call, but the slot filled by the
object reference or package name contains an expression that returns a
defined value which is neither an object reference nor a package name.
Something like this will reproduce the error:
$BADREF = 42;
process $BADREF 1,2,3;
$BADREF->process(1,2,3);
Uncaught exception from user code:
Can't call method "document" without a package or object reference at /usr/src/Padre/Padre/lib/Padre/Wx/TodoList.pm line 223.
at /usr/src/Padre/Padre/lib/Padre.pm line 262
Padre::run('Padre=HASH(0x91c58c0)') called at /usr/src/Padre/Padre/script/padre line 197
Perl exited with active threads:
7 running and unjoined
0 finished and unjoined
0 running and detached
comment:4 Changed 18 months ago by bowtie
- Status changed from new to closed
- Resolution set to fixed
fixed in Padre-Wx-Main
sub refresh_todo { my $self = shift; return unless $self->has_todo; return if $self->locked('REFRESH'); return unless $self->menu->view->{todo}->IsChecked; # changed to fix #1369, todo refresh don't understand @_ #$self->todo->refresh( @_ or $self->current ); $self->todo->refresh( $self->current ); return; }
applied in r17828
