diff -r 969b48eddd6b -r 4fdd74a04790 src/toolsets/filetoolset.cpp --- 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 (obj); + LDSubfileReference* ref = dynamic_cast (obj); if (ref and ref->fileInfo()->isCache()) ref->fileInfo()->openForEditing();