# HG changeset patch # User Santeri Piippo # Date 1376695448 -10800 # Node ID 7ef26b45ed55ffef2b7282792e90f6608c6eef6b # Parent 0bfe9a050083581550afa3cb2e92b08de6fbebb6 minor change diff -r 0bfe9a050083 -r 7ef26b45ed55 src/download.cpp --- a/src/download.cpp Sat Aug 17 02:07:49 2013 +0300 +++ b/src/download.cpp Sat Aug 17 02:24:08 2013 +0300 @@ -411,11 +411,8 @@ // This is why downloading a part may end up downloading multiple files, as // it resolves dependencies. for (LDObject* obj : *f) { - if (obj->getType() != LDObject::Error) - continue; - - LDErrorObject* err = static_cast (obj); - if (err->fileRef() == "") + LDErrorObject* err = dynamic_cast (obj); + if (!err || err->fileRef().isEmpty()) continue; str dest = err->fileRef();