Commit b4f8d2a5 authored by Guillaume Seguin's avatar Guillaume Seguin

Correctly skip event to allow default processing for options widgets

parent 5279dbe4
...@@ -105,6 +105,8 @@ class Setting(object): ...@@ -105,6 +105,8 @@ class Setting(object):
confirmation = wx.MessageDialog(None,_("Are you sure you want to reset the setting to the default value: {0!r} ?").format(self.default),_("Confirm set default"),wx.ICON_EXCLAMATION|wx.YES_NO|wx.NO_DEFAULT) confirmation = wx.MessageDialog(None,_("Are you sure you want to reset the setting to the default value: {0!r} ?").format(self.default),_("Confirm set default"),wx.ICON_EXCLAMATION|wx.YES_NO|wx.NO_DEFAULT)
if confirmation.ShowModal() == wx.ID_YES: if confirmation.ShowModal() == wx.ID_YES:
self._set_value(self.default) self._set_value(self.default)
else:
e.Skip()
@setting_add_tooltip @setting_add_tooltip
def get_label(self, parent): def get_label(self, parent):
......
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