Changeset 10459

Show
Ignore:
Timestamp:
02/01/10 23:31:24 (7 months ago)
Author:
azawawi
Message:

Make sure no-document does not hurt my Goto dialog :)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Dialog/Goto.pm

    r10454 r10459  
    286286        unless ($editor) { 
    287287                $self->Hide; 
    288                 return; 
     288                return 0; 
    289289        } 
    290290 
     
    295295        $self->{current_position}    = $editor->GetCurrentPos + 1; 
    296296 
    297         return; 
     297        return 1; 
    298298} 
    299299 
     
    314314 
    315315        # Update current, and max bounds from the current editor 
    316         $self->_update_from_editor; 
     316        return unless $self->_update_from_editor; 
    317317 
    318318        # Update Goto labels