Changeset 8574


Ignore:
Timestamp:
10/03/09 07:13:11 (2 years ago)
Author:
azawawi
Message:

[Padre] Fixed undef ref when using "new" startup mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Main.pm

    r8572 r8574  
    47504750    ); 
    47514751 
    4752     # We may run within window startup, there may be no "current" or "document": 
    4753     if ( defined( $self->current ) and defined( $self->current->document ) ) { 
     4752    # We may run within window startup, there may be no "current" or 
     4753    # "document" or "document->file": 
     4754    if (    defined( $self->current ) 
     4755        and defined( $self->current->document ) 
     4756        and defined( $self->current->document->file ) ) 
     4757    { 
    47544758        my $document = $self->current->document; 
    47554759        $variable_data{'f'} = $document->file->{filename}; 
Note: See TracChangeset for help on using the changeset viewer.