This commit is contained in:
Kovid Goyal 2013-08-05 12:09:13 +05:30
parent 34d2b0a64f
commit 1d338fa8c4

View File

@ -337,8 +337,8 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
plugin = self._plugin_model.index_to_plugin(index)
if op == 'toggle':
if not plugin.can_be_disabled:
error_dialog(self,_('Plugin cannot be disabled'),
_('Disabling the plugin %s is not allowed')%plugin.name).exec_()
info_dialog(self, _('Plugin cannot be disabled'),
_('Disabling the plugin %s is not allowed')%plugin.name, show=True, show_copy_button=False)
return
if is_disabled(plugin):
enable_plugin(plugin)