Ticket #331: Main.pm.diff
| File Main.pm.diff, 662 bytes (added by waxhead, 3 years ago) |
|---|
-
lib/Padre/Wx/Main.pm
2725 2725 2726 2726 sub on_save_all { 2727 2727 my $self = shift; 2728 my $currentID = $self->notebook->GetSelection; 2728 2729 foreach my $id ( $self->pageids ) { 2729 2730 my $editor = $self->notebook->GetPage($id) or next; 2731 $editor->SetFocus; 2730 2732 my $doc = $editor->{Document}; # TODO no accessor for document? 2731 2733 if ( $doc->is_modified ) { 2732 2734 $self->on_save($doc) or return 0; 2733 2735 } 2734 2736 } 2737 # set focus back to the currentDocument 2738 $self->notebook->SetSelection($currentID); 2735 2739 return 1; 2736 2740 } 2737 2741
