Commit 696c318a authored by Daniel Brötzmann's avatar Daniel Brötzmann

[openpgp] Fix usage of NewConfirmationDialog in key dialog

parent 422e2314
...@@ -20,7 +20,6 @@ import time ...@@ -20,7 +20,6 @@ import time
from gi.repository import Gtk from gi.repository import Gtk
from gajim.common import app from gajim.common import app
from gajim.common.const import ButtonAction
from gajim.gtk.dialogs import NewConfirmationDialog from gajim.gtk.dialogs import NewConfirmationDialog
from gajim.gtk.dialogs import DialogButton from gajim.gtk.dialogs import DialogButton
...@@ -126,11 +125,10 @@ class KeyRow(Gtk.ListBoxRow): ...@@ -126,11 +125,10 @@ class KeyRow(Gtk.ListBoxRow):
_('Delete Public Key'), _('Delete Public Key'),
_('This will permanently delete this public key'), _('This will permanently delete this public key'),
[DialogButton.make('Cancel'), [DialogButton.make('Cancel'),
DialogButton.make('OK', DialogButton.make('Remove',
text=_('Delete'), text=_('Delete'),
callback=_remove, callback=_remove)],
action=ButtonAction.DESTRUCTIVE)], transient_for=self.get_toplevel()).show()
transient_for=self.get_toplevel())
def set_trust(self, trust): def set_trust(self, trust):
icon_name, tooltip, css_class = TRUST_DATA[trust] icon_name, tooltip, css_class = TRUST_DATA[trust]
......
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