Ticket #1405: 0001-Fix-return-code-from-reload_editor-and-reload-all-ta.patch

File 0001-Fix-return-code-from-reload_editor-and-reload-all-ta.patch, 1008 bytes (added by mj41, 20 months ago)
  • Padre/lib/Padre/Wx/Main.pm

    From 7ed9f6ff2c337d7f6ba01b105bdfcee96e253637 Mon Sep 17 00:00:00 2001
    From: Michal Jurosz <mj@mj41.cz>
    Date: Sat, 11 Aug 2012 23:01:50 +0200
    Subject: [PATCH] Fix return code from reload_editor and reload all tabs.
    
    ---
     Padre/lib/Padre/Wx/Main.pm |    3 +--
     1 files changed, 1 insertions(+), 2 deletions(-)
    
    diff --git a/Padre/lib/Padre/Wx/Main.pm b/Padre/lib/Padre/Wx/Main.pm
    index aeba9ae..3fbe921 100644
    a b sub reload_editor { 
    46114611        foreach my $editor ( $self->editors ) { 
    46124612            $editor->SetMarginWidth( 1, 16 ); 
    46134613        } 
    4614         return; 
    46154614    } 
    46164615 
    46174616    # Refresh the editor title to remove any unsaved marker 
    sub reload_editors { 
    46514650    my $notebook = $self->notebook; 
    46524651    foreach my $i ( 0 .. $#editors ) { 
    46534652        $progress->update( $i, ( $i + 1 ) . "/$total" ); 
    4654         $self->reload_editor( $editors[$i] ) or return 0; 
     4653        $self->reload_editor( $editors[$i] ); 
    46554654    } 
    46564655 
    46574656    # Notify the plugin manager of the changed files