Commit e3035585 authored by Philipp Hörist's avatar Philipp Hörist

Merge branch 'omemo-copy-fingerprint' into 'master'

[omemo] Fix 'Copy to clipboard' in fingerprint window.

See merge request !14
parents 7f82edfd c29037ec
......@@ -290,6 +290,8 @@
<object class="GtkMenuItem" id="copyfprclipboard_item">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Copy to clipboard</property>
<property name="use_underline">True</property>
<signal name="activate" handler="clipboard_button_cb" swapped="no"/>
</object>
</child>
......
......@@ -557,7 +557,7 @@ class OMEMOConfigDialog(GajimPluginConfigDialog):
for path in paths:
it = mod.get_iter(path)
jid, fpr = mod.get(it, 1, 3)
fprs.append('%s: %s' % (jid, fpr[4:-5]))
fprs.append('%s: %s' % (jid, fpr[31:-12]))
gtk.Clipboard().set_text('\n'.join(fprs))
gtk.Clipboard(selection='PRIMARY').set_text('\n'.join(fprs))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment