src/addObjectDialog.cc

changeset 784
f82ab4d3c7b4
parent 770
b04c1e6ca1fb
child 786
71d786ce0dcc
equal deleted inserted replaced
783:1db20d88650f 784:f82ab4d3c7b4
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;

mercurial