From 696c318ac07c43c526bb351a6a5b8b671bf0a2bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Br=C3=B6tzmann?= Date: Mon, 19 Aug 2019 08:27:57 +0200 Subject: [PATCH] [openpgp] Fix usage of NewConfirmationDialog in key dialog --- openpgp/gtk/key.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/openpgp/gtk/key.py b/openpgp/gtk/key.py index de0fdc8..7142492 100644 --- a/openpgp/gtk/key.py +++ b/openpgp/gtk/key.py @@ -20,7 +20,6 @@ import time from gi.repository import Gtk from gajim.common import app -from gajim.common.const import ButtonAction from gajim.gtk.dialogs import NewConfirmationDialog from gajim.gtk.dialogs import DialogButton @@ -126,11 +125,10 @@ class KeyRow(Gtk.ListBoxRow): _('Delete Public Key'), _('This will permanently delete this public key'), [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, trust): icon_name, tooltip, css_class = TRUST_DATA[trust]