From 03a8f8092932c487d59624c7ec22139123c09ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Br=C3=B6tzmann?= Date: Mon, 19 Aug 2019 08:25:33 +0200 Subject: [PATCH] [omemo] Fix NewConfirmationDialog usage in key dialog --- omemo/gtk/key.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/omemo/gtk/key.py b/omemo/gtk/key.py index 9941344..2d3015a 100644 --- a/omemo/gtk/key.py +++ b/omemo/gtk/key.py @@ -26,7 +26,6 @@ from gi.repository import Gtk from gi.repository import GdkPixbuf from gajim.common import app -from gajim.common.const import ButtonAction from gajim.plugins.plugins_i18n import _ from gajim.plugins.helpers import get_builder from gajim.gtk.dialogs import NewConfirmationDialog @@ -284,11 +283,10 @@ class KeyRow(Gtk.ListBoxRow): _('Delete Fingerprint'), _('Doing so will permanently delete this Fingerprint'), [DialogButton.make('Cancel'), - DialogButton.make('OK', + DialogButton.make('Remove', text=_('Delete'), - callback=_remove, - action=ButtonAction.DESTRUCTIVE)], - transient_for=self.get_toplevel()) + callback=_remove)], + transient_for=self.get_toplevel()).show() def set_trust(self): icon_name, tooltip, css_class = TRUST_DATA[self.trust]