diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-01-30 20:35:54 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-01-30 20:35:54 +0300 |
commit | e303558529d713993568c194cc359a6e99367796 (patch) | |
tree | 62b61d79211e201e0502b7330405a847e6ee8cb0 | |
parent | 7f82edfdee9369cffa4a74d92ce3cef0428257fb (diff) | |
parent | c29037ecf94fd87c091c582e6f3bb50b673df523 (diff) |
Merge branch 'omemo-copy-fingerprint' into 'master'
[omemo] Fix 'Copy to clipboard' in fingerprint window.
See merge request !14
-rw-r--r-- | omemo/fpr_dialog.ui | 2 | ||||
-rw-r--r-- | omemo/ui.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/omemo/fpr_dialog.ui b/omemo/fpr_dialog.ui index b46cb46..367af7a 100644 --- a/omemo/fpr_dialog.ui +++ b/omemo/fpr_dialog.ui @@ -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> diff --git a/omemo/ui.py b/omemo/ui.py index 0469846..0d4bc8d 100644 --- a/omemo/ui.py +++ b/omemo/ui.py @@ -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)) |