408 String name = dlg.le_subfileName->text(); |
408 String name = dlg.le_subfileName->text(); |
409 |
409 |
410 if (name.length() == 0) |
410 if (name.length() == 0) |
411 return; // no subfile filename |
411 return; // no subfile filename |
412 |
412 |
413 LDDocument* file = getDocument (name); |
413 LDDocumentPtr file = getDocument (name); |
414 |
414 |
415 if (not file) |
415 if (not file) |
416 { |
416 { |
417 critical (format ("Couldn't open `%1': %2", name, strerror (errno))); |
417 critical (format ("Couldn't open `%1': %2", name, strerror (errno))); |
418 return; |
418 return; |