const strings
This commit is contained in:
parent
738d00ba72
commit
8a37513952
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue