360 if (!f) |
360 if (!f) |
361 { critical (fmt ("Couldn't open %1 (%2)", fname, strerror (errno))); |
361 { critical (fmt ("Couldn't open %1 (%2)", fname, strerror (errno))); |
362 return; |
362 return; |
363 } |
363 } |
364 |
364 |
365 List<LDObject*> objs = loadFileContents (&f, null); |
365 QList<LDObject*> objs = loadFileContents (&f, null); |
366 |
366 |
367 g_win->sel().clear(); |
367 g_win->sel().clear(); |
368 |
368 |
369 for (LDObject* obj : objs) |
369 for (LDObject* obj : objs) |
370 { LDFile::current()->insertObj (idx, obj); |
370 { LDFile::current()->insertObj (idx, obj); |