Changeset 11080


Ignore:
Timestamp:
03/12/10 02:24:04 (2 years ago)
Author:
waxhead
Message:

Fixed the wrong document type - mime type - selected in the view document as.

This was due to the sorting not being the same between the creation of the menu order and the Check(1)ing of the document type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Menu/View.pm

    r11075 r11080  
    8484        my $label = $name; 
    8585        $label =~ s/^\d+//; 
    86         my $tag = "view.view_as" . lc $label; 
     86        my $tag = "view.view_as_" . lc $label; 
    8787        $tag =~ s/\s/_/g; 
    8888        $self->add_radio_menu_item( 
     
    369369        if ( $document->mimetype ) { 
    370370            my %mimes = Padre::MimeTypes::menu_view_mimes(); 
    371             my @mimes = sort keys %mimes; 
     371            my @mimes = sort { lc($a) cmp lc($b) } keys %mimes; 
    372372            foreach my $pos ( 0 .. scalar @mimes - 1 ) { 
    373373                my $radio = $self->{view_as_highlighting}->FindItemByPosition($pos); 
Note: See TracChangeset for help on using the changeset viewer.