322 if (!f) { |
322 if (!f) { |
323 critical (fmt ("Couldn't open %1 (%2)", fname, strerror (errno))); |
323 critical (fmt ("Couldn't open %1 (%2)", fname, strerror (errno))); |
324 return; |
324 return; |
325 } |
325 } |
326 |
326 |
327 vector<LDObject*> objs = loadFileContents (&f, null); |
327 List<LDObject*> objs = loadFileContents (&f, null); |
328 |
328 |
329 g_win->sel().clear(); |
329 g_win->sel().clear(); |
330 |
330 |
331 for (LDObject* obj : objs) { |
331 for (LDObject* obj : objs) { |
332 LDOpenFile::current()->insertObj (idx, obj); |
332 LDOpenFile::current()->insertObj (idx, obj); |