Changeset 9763
- Timestamp:
- 12/17/09 22:29:14 (9 months ago)
- Files:
-
- 1 modified
-
trunk/Padre/lib/Padre/Wx/Dialog/OpenResource.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Wx/Dialog/OpenResource.pm
r9719 r9763 320 320 my $num_selected = scalar @matches; 321 321 if ( $num_selected == 1 ) { 322 $self->_status_text->ChangeValue( $self->_ matches_list->GetClientData( $matches[0]) );322 $self->_status_text->ChangeValue( $self->_path($self->_matches_list->GetClientData( $matches[0])) ); 323 323 $self->_copy_button->Enable(1); 324 324 } elsif ( $num_selected > 1 ) { … … 456 456 my @recent_files = (); 457 457 foreach my $e (@$recently_used) { 458 push @recent_files, $e->value;458 push @recent_files, $self->_path($e->value); 459 459 } 460 460 @recent_files = sort { File::Basename::fileparse($a) cmp File::Basename::fileparse($b) } @recent_files; … … 516 516 if ( $pos > 0 ) { 517 517 $self->_matches_list->Select(0); 518 $self->_status_text->ChangeValue( $self->_ matches_list->GetClientData(0) );518 $self->_status_text->ChangeValue( $self->_path($self->_matches_list->GetClientData(0)) ); 519 519 $self->_status_text->Enable(1); 520 520 $self->_copy_button->Enable(1); … … 530 530 } 531 531 532 # 533 # Cleans a path on various platforms 534 # 535 sub _path { 536 my ($self, $path) = @_; 537 if(Padre::Constant::WIN32) { 538 $path =~ s/\//\\/g; 539 } 540 return $path; 541 } 532 542 533 543 1;
