{"action":"created","issue":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2958","labels_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2958/labels{/name}","comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2958/comments","events_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2958/events","html_url":"https://github.com/qbittorrent/qBittorrent/pull/2958","id":74857650,"number":2958,"title":"Fix potential negative loop bound.","user":{"login":"Chocobo1","id":9395168,"avatar_url":"https://avatars.githubusercontent.com/u/9395168?v=3","gravatar_id":"","url":"https://api.github.com/users/Chocobo1","html_url":"https://github.com/Chocobo1","followers_url":"https://api.github.com/users/Chocobo1/followers","following_url":"https://api.github.com/users/Chocobo1/following{/other_user}","gists_url":"https://api.github.com/users/Chocobo1/gists{/gist_id}","starred_url":"https://api.github.com/users/Chocobo1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chocobo1/subscriptions","organizations_url":"https://api.github.com/users/Chocobo1/orgs","repos_url":"https://api.github.com/users/Chocobo1/repos","events_url":"https://api.github.com/users/Chocobo1/events{/privacy}","received_events_url":"https://api.github.com/users/Chocobo1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-10T07:25:05Z","updated_at":"2015-05-14T01:37:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/2958","html_url":"https://github.com/qbittorrent/qBittorrent/pull/2958","diff_url":"https://github.com/qbittorrent/qBittorrent/pull/2958.diff","patch_url":"https://github.com/qbittorrent/qBittorrent/pull/2958.patch"},"body":"QTorrentHandle::num_files() could return -1 in these cases."},"comment":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/comments/101876203","html_url":"https://github.com/qbittorrent/qBittorrent/pull/2958#issuecomment-101876203","issue_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2958","id":101876203,"user":{"login":"Chocobo1","id":9395168,"avatar_url":"https://avatars.githubusercontent.com/u/9395168?v=3","gravatar_id":"","url":"https://api.github.com/users/Chocobo1","html_url":"https://github.com/Chocobo1","followers_url":"https://api.github.com/users/Chocobo1/followers","following_url":"https://api.github.com/users/Chocobo1/following{/other_user}","gists_url":"https://api.github.com/users/Chocobo1/gists{/gist_id}","starred_url":"https://api.github.com/users/Chocobo1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chocobo1/subscriptions","organizations_url":"https://api.github.com/users/Chocobo1/orgs","repos_url":"https://api.github.com/users/Chocobo1/repos","events_url":"https://api.github.com/users/Chocobo1/events{/privacy}","received_events_url":"https://api.github.com/users/Chocobo1/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T01:37:31Z","updated_at":"2015-05-14T01:37:31Z","body":"Where do you want the comment to be added? It is obvious if you look at [QTorrentHandle::num_files() ](https://github.com/qbittorrent/qBittorrent/blob/2c5edf8652fc2244ff9e35d7c08e1c2434f5494d/src/core/qtlibtorrent/qtorrenthandle.cpp#L244) directly.\r\nOr should num_files() just return 0 if anything is wrong?\r\n"}}