{"action":"created","comment":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments/214780686","pull_request_review_id":151903799,"id":214780686,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDc4MDY4Ng==","diff_hunk":"@@ -988,6 +995,13 @@ void TabDeckEditor::actRemoveCard()\n     if (!currentIndex.isValid() || deckModel->hasChildren(currentIndex))\n         return;\n     deckModel->removeRow(currentIndex.row(), currentIndex.parent());\n+\n+    DeckLoader *const deck = deckModel->getDeckList();\n+    if (deck->isEmpty()) {","path":"cockatrice/src/tab_deck_editor.cpp","position":60,"original_position":60,"commit_id":"7974490855ca1a02a7df61ed96595a3c694c7b80","original_commit_id":"7974490855ca1a02a7df61ed96595a3c694c7b80","user":{"login":"leestran1995","id":41343559,"node_id":"MDQ6VXNlcjQxMzQzNTU5","avatar_url":"https://avatars2.githubusercontent.com/u/41343559?v=4","gravatar_id":"","url":"https://api.github.com/users/leestran1995","html_url":"https://github.com/leestran1995","followers_url":"https://api.github.com/users/leestran1995/followers","following_url":"https://api.github.com/users/leestran1995/following{/other_user}","gists_url":"https://api.github.com/users/leestran1995/gists{/gist_id}","starred_url":"https://api.github.com/users/leestran1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leestran1995/subscriptions","organizations_url":"https://api.github.com/users/leestran1995/orgs","repos_url":"https://api.github.com/users/leestran1995/repos","events_url":"https://api.github.com/users/leestran1995/events{/privacy}","received_events_url":"https://api.github.com/users/leestran1995/received_events","type":"User","site_admin":false},"body":"Of course! I'll commit that ASAP","created_at":"2018-09-04T03:49:31Z","updated_at":"2018-09-04T03:49:32Z","html_url":"https://github.com/Cockatrice/Cockatrice/pull/3384#discussion_r214780686","pull_request_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/3384","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments/214780686"},"html":{"href":"https://github.com/Cockatrice/Cockatrice/pull/3384#discussion_r214780686"},"pull_request":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/3384"}},"in_reply_to_id":214780272},"pull_request":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/3384","id":212640365,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNjQwMzY1","html_url":"https://github.com/Cockatrice/Cockatrice/pull/3384","diff_url":"https://github.com/Cockatrice/Cockatrice/pull/3384.diff","patch_url":"https://github.com/Cockatrice/Cockatrice/pull/3384.patch","issue_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/3384","number":3384,"state":"open","locked":false,"title":"Disable saving of decks when the deck is empty","user":{"login":"leestran1995","id":41343559,"node_id":"MDQ6VXNlcjQxMzQzNTU5","avatar_url":"https://avatars2.githubusercontent.com/u/41343559?v=4","gravatar_id":"","url":"https://api.github.com/users/leestran1995","html_url":"https://github.com/leestran1995","followers_url":"https://api.github.com/users/leestran1995/followers","following_url":"https://api.github.com/users/leestran1995/following{/other_user}","gists_url":"https://api.github.com/users/leestran1995/gists{/gist_id}","starred_url":"https://api.github.com/users/leestran1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leestran1995/subscriptions","organizations_url":"https://api.github.com/users/leestran1995/orgs","repos_url":"https://api.github.com/users/leestran1995/repos","events_url":"https://api.github.com/users/leestran1995/events{/privacy}","received_events_url":"https://api.github.com/users/leestran1995/received_events","type":"User","site_admin":false},"body":"## Related Ticket(s)\r\n- Fixes #3339 \r\n\r\n## Short roundup of the initial problem\r\n- Empty decks are able to be saved\r\n\r\n## What will change with this Pull Request?\r\n- The \"save\" and \"save as\" options will be greyed out when the deck is empty\r\n- Code for checking the size of the deck is borrowed from the actExportDeckDecklist() function\r\n\r\n\r\n## Screenshots\r\n![1](https://user-images.githubusercontent.com/41343559/44968075-401ddc80-af0b-11e8-87e9-5b3d3a340765.PNG)\r\n","created_at":"2018-09-03T04:53:52Z","updated_at":"2018-09-04T03:49:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b5c0d7617e15a992a25452896651b26d2e75144","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/3384/commits","review_comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/3384/comments","review_comment_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/3384/comments","statuses_url":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/7974490855ca1a02a7df61ed96595a3c694c7b80","head":{"label":"leestran1995:leestran-fixes","ref":"leestran-fixes","sha":"7974490855ca1a02a7df61ed96595a3c694c7b80","user":{"login":"leestran1995","id":41343559,"node_id":"MDQ6VXNlcjQxMzQzNTU5","avatar_url":"https://avatars2.githubusercontent.com/u/41343559?v=4","gravatar_id":"","url":"https://api.github.com/users/leestran1995","html_url":"https://github.com/leestran1995","followers_url":"https://api.github.com/users/leestran1995/followers","following_url":"https://api.github.com/users/leestran1995/following{/other_user}","gists_url":"https://api.github.com/users/leestran1995/gists{/gist_id}","starred_url":"https://api.github.com/users/leestran1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leestran1995/subscriptions","organizations_url":"https://api.github.com/users/leestran1995/orgs","repos_url":"https://api.github.com/users/leestran1995/repos","events_url":"https://api.github.com/users/leestran1995/events{/privacy}","received_events_url":"https://api.github.com/users/leestran1995/received_events","type":"User","site_admin":false},"repo":{"id":147152678,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcxNTI2Nzg=","name":"Cockatrice","full_name":"leestran1995/Cockatrice","owner":{"login":"leestran1995","id":41343559,"node_id":"MDQ6VXNlcjQxMzQzNTU5","avatar_url":"https://avatars2.githubusercontent.com/u/41343559?v=4","gravatar_id":"","url":"https://api.github.com/users/leestran1995","html_url":"https://github.com/leestran1995","followers_url":"https://api.github.com/users/leestran1995/followers","following_url":"https://api.github.com/users/leestran1995/following{/other_user}","gists_url":"https://api.github.com/users/leestran1995/gists{/gist_id}","starred_url":"https://api.github.com/users/leestran1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leestran1995/subscriptions","organizations_url":"https://api.github.com/users/leestran1995/orgs","repos_url":"https://api.github.com/users/leestran1995/repos","events_url":"https://api.github.com/users/leestran1995/events{/privacy}","received_events_url":"https://api.github.com/users/leestran1995/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leestran1995/Cockatrice","description":"A cross-platform virtual tabletop for multiplayer card games","fork":true,"url":"https://api.github.com/repos/leestran1995/Cockatrice","forks_url":"https://api.github.com/repos/leestran1995/Cockatrice/forks","keys_url":"https://api.github.com/repos/leestran1995/Cockatrice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leestran1995/Cockatrice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leestran1995/Cockatrice/teams","hooks_url":"https://api.github.com/repos/leestran1995/Cockatrice/hooks","issue_events_url":"https://api.github.com/repos/leestran1995/Cockatrice/issues/events{/number}","events_url":"https://api.github.com/repos/leestran1995/Cockatrice/events","assignees_url":"https://api.github.com/repos/leestran1995/Cockatrice/assignees{/user}","branches_url":"https://api.github.com/repos/leestran1995/Cockatrice/branches{/branch}","tags_url":"https://api.github.com/repos/leestran1995/Cockatrice/tags","blobs_url":"https://api.github.com/repos/leestran1995/Cockatrice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leestran1995/Cockatrice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leestran1995/Cockatrice/git/refs{/sha}","trees_url":"https://api.github.com/repos/leestran1995/Cockatrice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leestran1995/Cockatrice/statuses/{sha}","languages_url":"https://api.github.com/repos/leestran1995/Cockatrice/languages","stargazers_url":"https://api.github.com/repos/leestran1995/Cockatrice/stargazers","contributors_url":"https://api.github.com/repos/leestran1995/Cockatrice/contributors","subscribers_url":"https://api.github.com/repos/leestran1995/Cockatrice/subscribers","subscription_url":"https://api.github.com/repos/leestran1995/Cockatrice/subscription","commits_url":"https://api.github.com/repos/leestran1995/Cockatrice/commits{/sha}","git_commits_url":"https://api.github.com/repos/leestran1995/Cockatrice/git/commits{/sha}","comments_url":"https://api.github.com/repos/leestran1995/Cockatrice/comments{/number}","issue_comment_url":"https://api.github.com/repos/leestran1995/Cockatrice/issues/comments{/number}","contents_url":"https://api.github.com/repos/leestran1995/Cockatrice/contents/{+path}","compare_url":"https://api.github.com/repos/leestran1995/Cockatrice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leestran1995/Cockatrice/merges","archive_url":"https://api.github.com/repos/leestran1995/Cockatrice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leestran1995/Cockatrice/downloads","issues_url":"https://api.github.com/repos/leestran1995/Cockatrice/issues{/number}","pulls_url":"https://api.github.com/repos/leestran1995/Cockatrice/pulls{/number}","milestones_url":"https://api.github.com/repos/leestran1995/Cockatrice/milestones{/number}","notifications_url":"https://api.github.com/repos/leestran1995/Cockatrice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leestran1995/Cockatrice/labels{/name}","releases_url":"https://api.github.com/repos/leestran1995/Cockatrice/releases{/id}","deployments_url":"https://api.github.com/repos/leestran1995/Cockatrice/deployments","created_at":"2018-09-03T04:45:00Z","updated_at":"2018-09-03T04:45:04Z","pushed_at":"2018-09-04T02:06:43Z","git_url":"git://github.com/leestran1995/Cockatrice.git","ssh_url":"git@github.com:leestran1995/Cockatrice.git","clone_url":"https://github.com/leestran1995/Cockatrice.git","svn_url":"https://github.com/leestran1995/Cockatrice","homepage":"https://cockatrice.github.io","size":40108,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Cockatrice:master","ref":"master","sha":"8b567427c2bd92855a3776e046d8f5ee25df67ee","user":{"login":"Cockatrice","id":9746249,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk3NDYyNDk=","avatar_url":"https://avatars2.githubusercontent.com/u/9746249?v=4","gravatar_id":"","url":"https://api.github.com/users/Cockatrice","html_url":"https://github.com/Cockatrice","followers_url":"https://api.github.com/users/Cockatrice/followers","following_url":"https://api.github.com/users/Cockatrice/following{/other_user}","gists_url":"https://api.github.com/users/Cockatrice/gists{/gist_id}","starred_url":"https://api.github.com/users/Cockatrice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cockatrice/subscriptions","organizations_url":"https://api.github.com/users/Cockatrice/orgs","repos_url":"https://api.github.com/users/Cockatrice/repos","events_url":"https://api.github.com/users/Cockatrice/events{/privacy}","received_events_url":"https://api.github.com/users/Cockatrice/received_events","type":"Organization","site_admin":false},"repo":{"id":2907031,"node_id":"MDEwOlJlcG9zaXRvcnkyOTA3MDMx","name":"Cockatrice","full_name":"Cockatrice/Cockatrice","owner":{"login":"Cockatrice","id":9746249,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk3NDYyNDk=","avatar_url":"https://avatars2.githubusercontent.com/u/9746249?v=4","gravatar_id":"","url":"https://api.github.com/users/Cockatrice","html_url":"https://github.com/Cockatrice","followers_url":"https://api.github.com/users/Cockatrice/followers","following_url":"https://api.github.com/users/Cockatrice/following{/other_user}","gists_url":"https://api.github.com/users/Cockatrice/gists{/gist_id}","starred_url":"https://api.github.com/users/Cockatrice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cockatrice/subscriptions","organizations_url":"https://api.github.com/users/Cockatrice/orgs","repos_url":"https://api.github.com/users/Cockatrice/repos","events_url":"https://api.github.com/users/Cockatrice/events{/privacy}","received_events_url":"https://api.github.com/users/Cockatrice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cockatrice/Cockatrice","description":"A cross-platform virtual tabletop for multiplayer card games","fork":false,"url":"https://api.github.com/repos/Cockatrice/Cockatrice","forks_url":"https://api.github.com/repos/Cockatrice/Cockatrice/forks","keys_url":"https://api.github.com/repos/Cockatrice/Cockatrice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cockatrice/Cockatrice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cockatrice/Cockatrice/teams","hooks_url":"https://api.github.com/repos/Cockatrice/Cockatrice/hooks","issue_events_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/events{/number}","events_url":"https://api.github.com/repos/Cockatrice/Cockatrice/events","assignees_url":"https://api.github.com/repos/Cockatrice/Cockatrice/assignees{/user}","branches_url":"https://api.github.com/repos/Cockatrice/Cockatrice/branches{/branch}","tags_url":"https://api.github.com/repos/Cockatrice/Cockatrice/tags","blobs_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/{sha}","languages_url":"https://api.github.com/repos/Cockatrice/Cockatrice/languages","stargazers_url":"https://api.github.com/repos/Cockatrice/Cockatrice/stargazers","contributors_url":"https://api.github.com/repos/Cockatrice/Cockatrice/contributors","subscribers_url":"https://api.github.com/repos/Cockatrice/Cockatrice/subscribers","subscription_url":"https://api.github.com/repos/Cockatrice/Cockatrice/subscription","commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cockatrice/Cockatrice/contents/{+path}","compare_url":"https://api.github.com/repos/Cockatrice/Cockatrice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cockatrice/Cockatrice/merges","archive_url":"https://api.github.com/repos/Cockatrice/Cockatrice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cockatrice/Cockatrice/downloads","issues_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues{/number}","pulls_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls{/number}","milestones_url":"https://api.github.com/repos/Cockatrice/Cockatrice/milestones{/number}","notifications_url":"https://api.github.com/repos/Cockatrice/Cockatrice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cockatrice/Cockatrice/labels{/name}","releases_url":"https://api.github.com/repos/Cockatrice/Cockatrice/releases{/id}","deployments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/deployments","created_at":"2011-12-03T20:58:09Z","updated_at":"2018-09-02T14:14:14Z","pushed_at":"2018-09-04T02:06:44Z","git_url":"git://github.com/Cockatrice/Cockatrice.git","ssh_url":"git@github.com:Cockatrice/Cockatrice.git","clone_url":"https://github.com/Cockatrice/Cockatrice.git","svn_url":"https://github.com/Cockatrice/Cockatrice","homepage":"https://cockatrice.github.io","size":40053,"stargazers_count":689,"watchers_count":689,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":296,"mirror_url":null,"archived":false,"open_issues_count":544,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":296,"open_issues":544,"watchers":689,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/3384"},"html":{"href":"https://github.com/Cockatrice/Cockatrice/pull/3384"},"issue":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/3384"},"comments":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/3384/comments"},"review_comments":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/3384/comments"},"review_comment":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/3384/commits"},"statuses":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/7974490855ca1a02a7df61ed96595a3c694c7b80"}},"author_association":"NONE"}}
{"actor":{"display_login":"leestran1995"}}