post_print(): Check pdf_file for null/"".

This commit is contained in:
Kolan Sh 2016-02-28 19:21:38 +03:00
parent b62ab57583
commit c1a53e8cba
1 changed files with 2 additions and 1 deletions

View File

@ -193,7 +193,8 @@ namespace LAview.Desktop {
void post_print () {
var indices = get_template_indices();
var pdf_file = AppCore.core.get_pdf_file_path (indices[0]);
Utils.open_document (pdf_file, window);
if (pdf_file != null && pdf_file != "")
Utils.open_document (pdf_file, window);
}
[CCode (instance_pos = -1)]