{"action":"created","comment":{"url":"https://api.github.com/repos/Tox/qTox/pulls/comments/28463830","id":28463830,"diff_hunk":"@@ -1217,8 +1217,9 @@ bool Core::loadConfiguration(QString path)\n     qint64 fileSize = configurationFile.size();\n     if (fileSize > 0) {\n         QByteArray data = configurationFile.readAll();\n-        int error = -1;//tox_load(tox, reinterpret_cast<uint8_t *>(data.data()), data.size()); //TODO\n-        if (error < 0)\n+        TOX_ERR_NEW error;\n+        tox = tox_new(&options, reinterpret_cast<uint8_t *>(data.data()), data.size(), &error); //TODO\n+        if (error != TOX_ERR_NEW::TOX_ERR_NEW_OK && error != TOX_ERR_NEW::TOX_ERR_NEW_NULL)","path":"src/core.cpp","position":8,"original_position":8,"commit_id":"9aa0ae7e9ce0e596ebf49a75c8048ec41ff36ba4","original_commit_id":"9aa0ae7e9ce0e596ebf49a75c8048ec41ff36ba4","user":{"login":"rohilsurana","id":5618578,"avatar_url":"https://avatars.githubusercontent.com/u/5618578?v=3","gravatar_id":"","url":"https://api.github.com/users/rohilsurana","html_url":"https://github.com/rohilsurana","followers_url":"https://api.github.com/users/rohilsurana/followers","following_url":"https://api.github.com/users/rohilsurana/following{/other_user}","gists_url":"https://api.github.com/users/rohilsurana/gists{/gist_id}","starred_url":"https://api.github.com/users/rohilsurana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohilsurana/subscriptions","organizations_url":"https://api.github.com/users/rohilsurana/orgs","repos_url":"https://api.github.com/users/rohilsurana/repos","events_url":"https://api.github.com/users/rohilsurana/events{/privacy}","received_events_url":"https://api.github.com/users/rohilsurana/received_events","type":"User","site_admin":false},"body":"@nurupo can you please tell when does it occur. Actually i wasn't sure about this one. I could understand the meaning of others but not this one.","created_at":"2015-04-15T21:16:08Z","updated_at":"2015-04-15T21:16:08Z","html_url":"https://github.com/Tox/qTox/pull/1#discussion_r28463830","pull_request_url":"https://api.github.com/repos/Tox/qTox/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Tox/qTox/pulls/comments/28463830"},"html":{"href":"https://github.com/Tox/qTox/pull/1#discussion_r28463830"},"pull_request":{"href":"https://api.github.com/repos/Tox/qTox/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Tox/qTox/pulls/1","id":33252934,"html_url":"https://github.com/Tox/qTox/pull/1","diff_url":"https://github.com/Tox/qTox/pull/1.diff","patch_url":"https://github.com/Tox/qTox/pull/1.patch","issue_url":"https://api.github.com/repos/Tox/qTox/issues/1","number":1,"state":"open","locked":false,"title":"Profile now loads up from previous saved configuration","user":{"login":"rohilsurana","id":5618578,"avatar_url":"https://avatars.githubusercontent.com/u/5618578?v=3","gravatar_id":"","url":"https://api.github.com/users/rohilsurana","html_url":"https://github.com/rohilsurana","followers_url":"https://api.github.com/users/rohilsurana/followers","following_url":"https://api.github.com/users/rohilsurana/following{/other_user}","gists_url":"https://api.github.com/users/rohilsurana/gists{/gist_id}","starred_url":"https://api.github.com/users/rohilsurana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohilsurana/subscriptions","organizations_url":"https://api.github.com/users/rohilsurana/orgs","repos_url":"https://api.github.com/users/rohilsurana/repos","events_url":"https://api.github.com/users/rohilsurana/events{/privacy}","received_events_url":"https://api.github.com/users/rohilsurana/received_events","type":"User","site_admin":false},"body":"Profile now loads up from the previously saved data\r\nThe first TODO in the last commit message.","created_at":"2015-04-14T12:39:05Z","updated_at":"2015-04-15T21:16:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e0c6089c05bcee170f49b33ab35d04ed52abefb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Tox/qTox/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Tox/qTox/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Tox/qTox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tox/qTox/issues/1/comments","statuses_url":"https://api.github.com/repos/Tox/qTox/statuses/9aa0ae7e9ce0e596ebf49a75c8048ec41ff36ba4","head":{"label":"rohilsurana:load_profile","ref":"load_profile","sha":"9aa0ae7e9ce0e596ebf49a75c8048ec41ff36ba4","user":{"login":"rohilsurana","id":5618578,"avatar_url":"https://avatars.githubusercontent.com/u/5618578?v=3","gravatar_id":"","url":"https://api.github.com/users/rohilsurana","html_url":"https://github.com/rohilsurana","followers_url":"https://api.github.com/users/rohilsurana/followers","following_url":"https://api.github.com/users/rohilsurana/following{/other_user}","gists_url":"https://api.github.com/users/rohilsurana/gists{/gist_id}","starred_url":"https://api.github.com/users/rohilsurana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohilsurana/subscriptions","organizations_url":"https://api.github.com/users/rohilsurana/orgs","repos_url":"https://api.github.com/users/rohilsurana/repos","events_url":"https://api.github.com/users/rohilsurana/events{/privacy}","received_events_url":"https://api.github.com/users/rohilsurana/received_events","type":"User","site_admin":false},"repo":{"id":33929932,"name":"qTox-1","full_name":"rohilsurana/qTox-1","owner":{"login":"rohilsurana","id":5618578,"avatar_url":"https://avatars.githubusercontent.com/u/5618578?v=3","gravatar_id":"","url":"https://api.github.com/users/rohilsurana","html_url":"https://github.com/rohilsurana","followers_url":"https://api.github.com/users/rohilsurana/followers","following_url":"https://api.github.com/users/rohilsurana/following{/other_user}","gists_url":"https://api.github.com/users/rohilsurana/gists{/gist_id}","starred_url":"https://api.github.com/users/rohilsurana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohilsurana/subscriptions","organizations_url":"https://api.github.com/users/rohilsurana/orgs","repos_url":"https://api.github.com/users/rohilsurana/repos","events_url":"https://api.github.com/users/rohilsurana/events{/privacy}","received_events_url":"https://api.github.com/users/rohilsurana/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rohilsurana/qTox-1","description":"qTox fork","fork":true,"url":"https://api.github.com/repos/rohilsurana/qTox-1","forks_url":"https://api.github.com/repos/rohilsurana/qTox-1/forks","keys_url":"https://api.github.com/repos/rohilsurana/qTox-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rohilsurana/qTox-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rohilsurana/qTox-1/teams","hooks_url":"https://api.github.com/repos/rohilsurana/qTox-1/hooks","issue_events_url":"https://api.github.com/repos/rohilsurana/qTox-1/issues/events{/number}","events_url":"https://api.github.com/repos/rohilsurana/qTox-1/events","assignees_url":"https://api.github.com/repos/rohilsurana/qTox-1/assignees{/user}","branches_url":"https://api.github.com/repos/rohilsurana/qTox-1/branches{/branch}","tags_url":"https://api.github.com/repos/rohilsurana/qTox-1/tags","blobs_url":"https://api.github.com/repos/rohilsurana/qTox-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rohilsurana/qTox-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rohilsurana/qTox-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/rohilsurana/qTox-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rohilsurana/qTox-1/statuses/{sha}","languages_url":"https://api.github.com/repos/rohilsurana/qTox-1/languages","stargazers_url":"https://api.github.com/repos/rohilsurana/qTox-1/stargazers","contributors_url":"https://api.github.com/repos/rohilsurana/qTox-1/contributors","subscribers_url":"https://api.github.com/repos/rohilsurana/qTox-1/subscribers","subscription_url":"https://api.github.com/repos/rohilsurana/qTox-1/subscription","commits_url":"https://api.github.com/repos/rohilsurana/qTox-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/rohilsurana/qTox-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/rohilsurana/qTox-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/rohilsurana/qTox-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/rohilsurana/qTox-1/contents/{+path}","compare_url":"https://api.github.com/repos/rohilsurana/qTox-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rohilsurana/qTox-1/merges","archive_url":"https://api.github.com/repos/rohilsurana/qTox-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rohilsurana/qTox-1/downloads","issues_url":"https://api.github.com/repos/rohilsurana/qTox-1/issues{/number}","pulls_url":"https://api.github.com/repos/rohilsurana/qTox-1/pulls{/number}","milestones_url":"https://api.github.com/repos/rohilsurana/qTox-1/milestones{/number}","notifications_url":"https://api.github.com/repos/rohilsurana/qTox-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rohilsurana/qTox-1/labels{/name}","releases_url":"https://api.github.com/repos/rohilsurana/qTox-1/releases{/id}","created_at":"2015-04-14T12:20:25Z","updated_at":"2015-04-14T12:20:27Z","pushed_at":"2015-04-15T19:15:08Z","git_url":"git://github.com/rohilsurana/qTox-1.git","ssh_url":"git@github.com:rohilsurana/qTox-1.git","clone_url":"https://github.com/rohilsurana/qTox-1.git","svn_url":"https://github.com/rohilsurana/qTox-1","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Tox:master","ref":"master","sha":"193f970372b13d7b6ea1903a2d5f28a564954cfc","user":{"login":"Tox","id":5127354,"avatar_url":"https://avatars.githubusercontent.com/u/5127354?v=3","gravatar_id":"","url":"https://api.github.com/users/Tox","html_url":"https://github.com/Tox","followers_url":"https://api.github.com/users/Tox/followers","following_url":"https://api.github.com/users/Tox/following{/other_user}","gists_url":"https://api.github.com/users/Tox/gists{/gist_id}","starred_url":"https://api.github.com/users/Tox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tox/subscriptions","organizations_url":"https://api.github.com/users/Tox/orgs","repos_url":"https://api.github.com/users/Tox/repos","events_url":"https://api.github.com/users/Tox/events{/privacy}","received_events_url":"https://api.github.com/users/Tox/received_events","type":"Organization","site_admin":false},"repo":{"id":33878065,"name":"qTox","full_name":"Tox/qTox","owner":{"login":"Tox","id":5127354,"avatar_url":"https://avatars.githubusercontent.com/u/5127354?v=3","gravatar_id":"","url":"https://api.github.com/users/Tox","html_url":"https://github.com/Tox","followers_url":"https://api.github.com/users/Tox/followers","following_url":"https://api.github.com/users/Tox/following{/other_user}","gists_url":"https://api.github.com/users/Tox/gists{/gist_id}","starred_url":"https://api.github.com/users/Tox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tox/subscriptions","organizations_url":"https://api.github.com/users/Tox/orgs","repos_url":"https://api.github.com/users/Tox/repos","events_url":"https://api.github.com/users/Tox/events{/privacy}","received_events_url":"https://api.github.com/users/Tox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tox/qTox","description":"qTox fork","fork":false,"url":"https://api.github.com/repos/Tox/qTox","forks_url":"https://api.github.com/repos/Tox/qTox/forks","keys_url":"https://api.github.com/repos/Tox/qTox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tox/qTox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tox/qTox/teams","hooks_url":"https://api.github.com/repos/Tox/qTox/hooks","issue_events_url":"https://api.github.com/repos/Tox/qTox/issues/events{/number}","events_url":"https://api.github.com/repos/Tox/qTox/events","assignees_url":"https://api.github.com/repos/Tox/qTox/assignees{/user}","branches_url":"https://api.github.com/repos/Tox/qTox/branches{/branch}","tags_url":"https://api.github.com/repos/Tox/qTox/tags","blobs_url":"https://api.github.com/repos/Tox/qTox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tox/qTox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tox/qTox/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tox/qTox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tox/qTox/statuses/{sha}","languages_url":"https://api.github.com/repos/Tox/qTox/languages","stargazers_url":"https://api.github.com/repos/Tox/qTox/stargazers","contributors_url":"https://api.github.com/repos/Tox/qTox/contributors","subscribers_url":"https://api.github.com/repos/Tox/qTox/subscribers","subscription_url":"https://api.github.com/repos/Tox/qTox/subscription","commits_url":"https://api.github.com/repos/Tox/qTox/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tox/qTox/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tox/qTox/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tox/qTox/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tox/qTox/contents/{+path}","compare_url":"https://api.github.com/repos/Tox/qTox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tox/qTox/merges","archive_url":"https://api.github.com/repos/Tox/qTox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tox/qTox/downloads","issues_url":"https://api.github.com/repos/Tox/qTox/issues{/number}","pulls_url":"https://api.github.com/repos/Tox/qTox/pulls{/number}","milestones_url":"https://api.github.com/repos/Tox/qTox/milestones{/number}","notifications_url":"https://api.github.com/repos/Tox/qTox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tox/qTox/labels{/name}","releases_url":"https://api.github.com/repos/Tox/qTox/releases{/id}","created_at":"2015-04-13T15:54:00Z","updated_at":"2015-04-15T19:51:10Z","pushed_at":"2015-04-15T19:15:08Z","git_url":"git://github.com/Tox/qTox.git","ssh_url":"git@github.com:Tox/qTox.git","clone_url":"https://github.com/Tox/qTox.git","svn_url":"https://github.com/Tox/qTox","homepage":null,"size":0,"stargazers_count":6,"watchers_count":6,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tox/qTox/pulls/1"},"html":{"href":"https://github.com/Tox/qTox/pull/1"},"issue":{"href":"https://api.github.com/repos/Tox/qTox/issues/1"},"comments":{"href":"https://api.github.com/repos/Tox/qTox/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Tox/qTox/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Tox/qTox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tox/qTox/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Tox/qTox/statuses/9aa0ae7e9ce0e596ebf49a75c8048ec41ff36ba4"}}}}