post_print(): Check pdf_file for null/"".
This commit is contained in:
parent
b62ab57583
commit
c1a53e8cba
@ -193,7 +193,8 @@ namespace LAview.Desktop {
|
|||||||
void post_print () {
|
void post_print () {
|
||||||
var indices = get_template_indices();
|
var indices = get_template_indices();
|
||||||
var pdf_file = AppCore.core.get_pdf_file_path (indices[0]);
|
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)]
|
[CCode (instance_pos = -1)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user