--- a/src/toolsets/filetoolset.cpp Sun Oct 04 22:54:17 2015 +0300 +++ b/src/toolsets/filetoolset.cpp Sat Oct 24 13:19:27 2015 +0300 @@ -179,7 +179,7 @@ { for (LDObject* obj : selectedObjects()) { - LDSubfile* ref = dynamic_cast<LDSubfile*> (obj); + LDSubfileReference* ref = dynamic_cast<LDSubfileReference*> (obj); if (ref and ref->fileInfo()->isCache()) ref->fileInfo()->openForEditing();