Fixed a small issue that was making impossible to close the blacklist by pressing escape

This commit is contained in:
2021-04-20 09:57:54 -05:00
parent 1f575f0311
commit 197e649afb
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import wx
import widgetUtils
@@ -14,7 +13,7 @@ class blacklistDialog(widgetUtils.BaseDialog):
sizer.Add(box1, 0, wx.ALL, 5)
self.unblock = wx.Button(panel, wx.NewId(), _("Unblock"))
sizer.Add(self.unblock, 0, wx.ALL, 5)
close = wx.Button(panel, wx.ID_CLOSE)
close = wx.Button(panel, wx.ID_CANCEL, _("Close"))
sizer.Add(close, 0, wx.ALL, 5)
panel.SetSizer(sizer)
self.SetClientSize(sizer.CalcMin())