const strings

This commit is contained in:
dickelbeck 2008-01-01 07:51:54 +00:00
parent 738d00ba72
commit 8a37513952
1 changed files with 4 additions and 1 deletions

View File

@ -672,7 +672,8 @@ void OpenPDF( const wxString& file )
{
AddDelimiterString( filename );
command.Empty();
wxString tries[] =
const static wxString tries[] =
{
wxT( "/usr/bin/evince" ),
wxT( "/usr/bin/xpdf" ),
@ -680,10 +681,12 @@ void OpenPDF( const wxString& file )
wxT( "/usr/bin/gpdf" ),
wxT( "" ),
};
for( int i = 0; ; i++ )
{
if( tries[i].IsEmpty() )
break;
if( wxFileExists( tries[i] ) )
{
command = tries[i] + wxT( " " ) + filename;