{"action":"created","issue":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2388","labels_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2388/labels{/name}","comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2388/comments","events_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2388/events","html_url":"https://github.com/qbittorrent/qBittorrent/pull/2388","id":53960601,"number":2388,"title":"Reduce time to open the context menu in the transfer list","user":{"login":"pmzqla","id":6256149,"avatar_url":"https://avatars.githubusercontent.com/u/6256149?v=3","gravatar_id":"","url":"https://api.github.com/users/pmzqla","html_url":"https://github.com/pmzqla","followers_url":"https://api.github.com/users/pmzqla/followers","following_url":"https://api.github.com/users/pmzqla/following{/other_user}","gists_url":"https://api.github.com/users/pmzqla/gists{/gist_id}","starred_url":"https://api.github.com/users/pmzqla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmzqla/subscriptions","organizations_url":"https://api.github.com/users/pmzqla/orgs","repos_url":"https://api.github.com/users/pmzqla/repos","events_url":"https://api.github.com/users/pmzqla/events{/privacy}","received_events_url":"https://api.github.com/users/pmzqla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-10T15:03:23Z","updated_at":"2015-01-19T05:27:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/2388","html_url":"https://github.com/qbittorrent/qBittorrent/pull/2388","diff_url":"https://github.com/qbittorrent/qBittorrent/pull/2388.diff","patch_url":"https://github.com/qbittorrent/qBittorrent/pull/2388.patch"},"body":"Starting from libtorrent 1.0, QTorrentHandle::filepath_at() (and\r\nhence isFilePreviewPossible()) became much slower, making qBittorrent\r\nhangs when a right click is performed on torrents with many files.\r\nFix this by always showing the preview button when a torrent contains\r\nmany files (> 100), thus avoiding the use of isFilePreviewPossible().\r\nqBittorrent will verify the presence of previewable files once the\r\noption is clicked anyway.\r\n\r\nIn addition, avoid calling isFilePreviewPossible() if we already know\r\nthat there are previewable files and use QTorrentHandle::filepath_at()\r\ninstead of QTorrentHandle::filename_at() since it's a bit faster and it\r\nmakes no difference for what the extension of files is concerned.\r\n\r\nCloses #2365."},"comment":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/comments/70447902","html_url":"https://github.com/qbittorrent/qBittorrent/pull/2388#issuecomment-70447902","issue_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2388","id":70447902,"user":{"login":"DoumanAsh","id":5676053,"avatar_url":"https://avatars.githubusercontent.com/u/5676053?v=3","gravatar_id":"","url":"https://api.github.com/users/DoumanAsh","html_url":"https://github.com/DoumanAsh","followers_url":"https://api.github.com/users/DoumanAsh/followers","following_url":"https://api.github.com/users/DoumanAsh/following{/other_user}","gists_url":"https://api.github.com/users/DoumanAsh/gists{/gist_id}","starred_url":"https://api.github.com/users/DoumanAsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoumanAsh/subscriptions","organizations_url":"https://api.github.com/users/DoumanAsh/orgs","repos_url":"https://api.github.com/users/DoumanAsh/repos","events_url":"https://api.github.com/users/DoumanAsh/events{/privacy}","received_events_url":"https://api.github.com/users/DoumanAsh/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T05:27:03Z","updated_at":"2015-01-19T05:27:03Z","body":"@tekko \r\nIt seems the same to me. it's already good that it doesn't freeze every time, though not sure if it may be possible to fix all freezes."}}