Commit f49d2e32 authored by charras's avatar charras

doc update.

parent 3bbeec12
...@@ -154,14 +154,12 @@ bool GetAssociatedDocument( wxFrame* frame, const wxString& LibPath, ...@@ -154,14 +154,12 @@ bool GetAssociatedDocument( wxFrame* frame, const wxString& LibPath,
wxFileName CurrentFileName( fullfilename ); wxFileName CurrentFileName( fullfilename );
file_ext = CurrentFileName.GetExt(); file_ext = CurrentFileName.GetExt();
if( file_ext == wxT( "pdf" ) ) if( file_ext == wxT( "pdf" ) )
{ {
success = OpenPDF( fullfilename ); success = OpenPDF( fullfilename );
return success; return success;
} }
/* Try to launch some browser (usefull under linux) */ /* Try to launch some browser (usefull under linux) */
wxFileType* filetype; wxFileType* filetype;
......
...@@ -737,13 +737,15 @@ bool OpenPDF( const wxString& file ) ...@@ -737,13 +737,15 @@ bool OpenPDF( const wxString& file )
if( success && !command.IsEmpty() ) if( success && !command.IsEmpty() )
{ {
success = ProcessExecute( command ); success = ProcessExecute( command );
if ( success )
return success;
} }
else
success = false; success = false;
command.Empty();
if( !success ) if( !success )
{ {
command.Empty();
#ifndef __WINDOWS__ #ifndef __WINDOWS__
AddDelimiterString( filename ); AddDelimiterString( filename );
/* here is a list of PDF viewers candidates */ /* here is a list of PDF viewers candidates */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment