386 int idx = getInsertionPoint(); |
386 int idx = getInsertionPoint(); |
387 |
387 |
388 if (!fname.length()) |
388 if (!fname.length()) |
389 return; |
389 return; |
390 |
390 |
391 File f (fname, File::Read); |
391 QFile f (fname); |
392 |
392 |
393 if (!f) |
393 if (!f.open (QIODevice::ReadOnly)) |
394 { |
394 { |
395 critical (fmt ("Couldn't open %1 (%2)", fname, strerror (errno))); |
395 critical (fmt ("Couldn't open %1 (%2)", fname, f.errorString())); |
396 return; |
396 return; |
397 } |
397 } |
398 |
398 |
399 QList<LDObject*> objs = loadFileContents (&f, null); |
399 QList<LDObject*> objs = loadFileContents (&f, null); |
400 |
400 |