diff --git a/src/eventmanager.cpp b/src/eventmanager.cpp index e58a314cf..96d2b8014 100644 --- a/src/eventmanager.cpp +++ b/src/eventmanager.cpp @@ -94,7 +94,7 @@ QList EventManager::getPropTrackersInfo(QString hash) const { QList EventManager::getPropFilesInfo(QString hash) const { QList files; QTorrentHandle h = BTSession->getTorrentHandle(hash); - if(!h.is_valid()) return files; + if(!h.is_valid() || !h.has_metadata()) return files; std::vector priorities = h.file_priorities(); std::vector fp; h.file_progress(fp); @@ -136,7 +136,7 @@ QVariantMap EventManager::getGlobalPreferences() const { QVariantMap EventManager::getPropGeneralInfo(QString hash) const { QVariantMap data; QTorrentHandle h = BTSession->getTorrentHandle(hash); - if(h.is_valid()) { + if(h.is_valid() && h.has_metadata()) { // Save path data["save_path"] = TorrentPersistentData::getSavePath(hash); // Creation date