Merge lp://staging/~kevang/mnemosyne-proj/grade_only_if_showing into lp://staging/~peter-bienstman/mnemosyne-proj/trunk
Status: | Rejected |
---|---|
Rejected by: | Peter Bienstman |
Proposed branch: | lp://staging/~kevang/mnemosyne-proj/grade_only_if_showing |
Merge into: | lp://staging/~peter-bienstman/mnemosyne-proj/trunk |
Diff against target: |
17 lines (+4/-3) 1 file modified
mnemosyne/mnemosyne/pyqt_ui/review_wdgt.py (+4/-3) |
To merge this branch: | bzr merge lp://staging/~kevang/mnemosyne-proj/grade_only_if_showing |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kilian Evang (community) | Disapprove | ||
Peter Bienstman | Pending | ||
Review via email: mp+235605@code.staging.launchpad.net |
Description of the change
Despite https:/
This simple fix seems to do the trick: grade_answer now only acts if the answer is currently showing, thereby ignoring the second key press.
Unmerged revisions
- 1816. By Kilian Evang <email address hidden>
-
grade_answer now only acts if the answer is showing. This to prevent accidental grading of the next card when hitting two number keys at once.
Thanks, I will commit this.
There is still the remaining issue though that if you press and hold down a number key, it will show the answer and immediately grade it...
Peter
> -----Original Message----- only_if_ showing into lp:mnemosyne-proj. /code.launchpad .net/~kevang/ mnemosyne- only_if_ showing/ +merge/ 235605 /code.launchpad .net/~kevang/ mnemosyne- keys_show_ answer/ +merge/ 234210, I was still having issues /code.launchpad .net/~kevang/ mnemosyne- only_if_ showing/ +merge/ 235605
> From: <email address hidden> [mailto:<email address hidden>] On Behalf
> Of Kilian Evang
> Sent: 23 September 2014 12:39
> To: <email address hidden>
> Subject: [Merge] lp:~kevang/mnemosyne-proj/grade_only_if_showing into
> lp:mnemosyne-proj
>
> Kilian Evang has proposed merging lp:~kevang/mnemosyne-
> proj/grade_
>
> Requested reviews:
> Peter Bienstman (peter-bienstman)
>
> For more details, see:
> https:/
> proj/grade_
>
> Despite https:/
> proj/number_
> with accidentally grading two cards in a row by pressing two number keys at
> the same time. I found that what happens is this: one of the two buttons will
> cause grade_answer to be called, which grades the answer and brings up the
> next card. In this process, the grade buttons are disabled and a further
> number key press should not lead to grading anymore. However, since the
> two key presses happened at the same time, PyQT is already processing
> them, and grade_answer will also be called for the other button, grading the
> next card.
>
> This simple fix seems to do the trick: grade_answer now only acts if the
> answer is currently showing, thereby ignoring the second key press.
> --
> https:/
> proj/grade_
> You are requested to review the proposed merge of
> lp:~kevang/mnemosyne-proj/grade_only_if_showing into lp:mnemosyne-
> proj.