src/addObjectDialog.cpp

changeset 254
434c9844e45d
parent 253
0737c217a54d
child 265
955c0aabfebf
equal deleted inserted replaced
253:0737c217a54d 254:434c9844e45d
478 { 478 {
479 str name = dlg.le_subfileName->text (); 479 str name = dlg.le_subfileName->text ();
480 if (~name == 0) 480 if (~name == 0)
481 return; // no subfile filename 481 return; // no subfile filename
482 482
483 LDOpenFile* file = loadFile (name); 483 LDOpenFile* file = getFile (name);
484 if (!file) { 484 if (!file) {
485 critical (fmt ("Couldn't open `%s': %s", name.c (), strerror (errno))); 485 critical (fmt ("Couldn't open `%s': %s", name.c (), strerror (errno)));
486 return; 486 return;
487 } 487 }
488 488

mercurial