Copy to clipboard.

This commit is contained in:
Dain Nilsson 2015-06-03 11:56:56 +02:00
parent 91967a86ae
commit 054c8e9666

View File

@ -124,7 +124,8 @@ class Code(QtGui.QWidget):
self._on_change()
def _copy(self):
print "TODO: copy", self.cred.code.code
QtCore.QCoreApplication.instance().clipboard().setText(
self.cred.code.code)
def _calc(self):
if self.cred.cred_type is CredentialType.HOTP: