{"action":"created","issue":{"url":"https://api.github.com/repos/x64dbg/x64dbg/issues/474","labels_url":"https://api.github.com/repos/x64dbg/x64dbg/issues/474/labels{/name}","comments_url":"https://api.github.com/repos/x64dbg/x64dbg/issues/474/comments","events_url":"https://api.github.com/repos/x64dbg/x64dbg/issues/474/events","html_url":"https://github.com/x64dbg/x64dbg/issues/474","id":123883936,"number":474,"title":"Deselected patches are incorrectly ticked as enabled after selecting \"Restore Selected\"","user":{"login":"wk-952","id":11916365,"avatar_url":"https://avatars.githubusercontent.com/u/11916365?v=3","gravatar_id":"","url":"https://api.github.com/users/wk-952","html_url":"https://github.com/wk-952","followers_url":"https://api.github.com/users/wk-952/followers","following_url":"https://api.github.com/users/wk-952/following{/other_user}","gists_url":"https://api.github.com/users/wk-952/gists{/gist_id}","starred_url":"https://api.github.com/users/wk-952/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wk-952/subscriptions","organizations_url":"https://api.github.com/users/wk-952/orgs","repos_url":"https://api.github.com/users/wk-952/repos","events_url":"https://api.github.com/users/wk-952/events{/privacy}","received_events_url":"https://api.github.com/users/wk-952/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/x64dbg/x64dbg/labels/bug","name":"bug","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-25T14:21:52Z","updated_at":"2015-12-25T15:42:22Z","closed_at":"2015-12-25T15:19:43Z","body":"1. Debug any program.\r\n2. Patch 2 locations (instructions), so that the distance between them is >=12 bytes, or simply the distance between them is large enough so that they're not grouped together.\r\n3. Press `Ctrl + P` then deselect one of them (disable the patches) and keep the other.\r\n4. Select the `Restore Selected` button.\r\n5. The selected bytes will be restored normally,\r\nbut the previously-deselected ones will have their checkboxes ticked as if they're selected.\r\n\r\n- Pic:\r\n![err](https://cloud.githubusercontent.com/assets/11916365/12003310/be8a4928-ab21-11e5-9c2f-e497f5d9ea31.png)\r\n\r\n- This is not introduced because of one of the new commits or anything,\r\nit is a very very very old issue that's still there.\r\n- To solve this, you have to deselect then select them again.\r\n- Also the GUI incorrectly shows the original bytes (that are incorrectly ticked in the patches window)\r\nas red ones as if they're patched. (so, could i assume that bytes coloring depends on the tick-box ?)\r\n- This issue shines (becomes annoying) when you're doing a lot of patches (really a lot)\r\nthat are not near each other (not grouped), so when they're incorrectly ticked you have to\r\ndeselect and select them again one by one for them to become active/effective again."},"comment":{"url":"https://api.github.com/repos/x64dbg/x64dbg/issues/comments/167246087","html_url":"https://github.com/x64dbg/x64dbg/issues/474#issuecomment-167246087","issue_url":"https://api.github.com/repos/x64dbg/x64dbg/issues/474","id":167246087,"user":{"login":"wk-952","id":11916365,"avatar_url":"https://avatars.githubusercontent.com/u/11916365?v=3","gravatar_id":"","url":"https://api.github.com/users/wk-952","html_url":"https://github.com/wk-952","followers_url":"https://api.github.com/users/wk-952/followers","following_url":"https://api.github.com/users/wk-952/following{/other_user}","gists_url":"https://api.github.com/users/wk-952/gists{/gist_id}","starred_url":"https://api.github.com/users/wk-952/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wk-952/subscriptions","organizations_url":"https://api.github.com/users/wk-952/orgs","repos_url":"https://api.github.com/users/wk-952/repos","events_url":"https://api.github.com/users/wk-952/events{/privacy}","received_events_url":"https://api.github.com/users/wk-952/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T15:42:22Z","updated_at":"2015-12-25T15:42:22Z","body":"Totally forgot how the coloring works, sorry.\r\n\r\n1. Do the steps from 1) till 4) again.\r\n2. The previously-deselected bytes won't be ticked (yaay!) \r\n3. Now close the patches window and re-open it again, guess what happens :smile: \r\n\r\nMerry Christmas to you btw and everyone here."}}