src/addObjectDialog.cpp

changeset 253
0737c217a54d
parent 248
4431371f3ffe
child 254
434c9844e45d
equal deleted inserted replaced
252:3f9067022d74 253:0737c217a54d
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 = loadSubfile (name); 483 LDOpenFile* file = loadFile (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