dae/ankiqt — pull request #20 by ospalh (2012-06-04 14:39:05+00:00)
Title: Remove redundant connect to clicked().

Hi.
Perhaps i should have started the commit message with “Avoid replaying media when closing edit dialog.”
Anyway, he change itself and the commit message pretty much says it all:
A QDialogButtonBox::Close StandardButton has the RejectRole.
(http://doc.qt.nokia.com/4.7-snapshot/qdialogbuttonbox.html#StandardButton-enum)
So when that is clicked, that button’s clicked() signal
as well as the dialog’s rejected() signals are emitted.
Connecting EditCurrent’s onSave() to both was redundant.
It looks like calling onSave() twice was mostly harmless,
but not quite:
When closing the edit dialog, media on the edited card’s front side
were played twice (via moveToState ... Reviewer.showQuestion()).
So avoid that.