This commit is contained in:
Kovid Goyal 2011-01-28 11:21:12 -07:00
parent c8c9ca7af9
commit d44429dd5e

View File

@ -188,6 +188,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
self.plugin_view.PositionAtCenter) self.plugin_view.PositionAtCenter)
self.plugin_view.scrollTo(idx, self.plugin_view.scrollTo(idx,
self.plugin_view.PositionAtCenter) self.plugin_view.PositionAtCenter)
self.plugin_view.selectionModel().select(idx,
self.plugin_view.selectionModel().ClearAndSelect)
self.plugin_view.setCurrentIndex(idx)
else: else:
error_dialog(self, _('No valid plugin path'), error_dialog(self, _('No valid plugin path'),
_('%s is not a valid plugin path')%path).exec_() _('%s is not a valid plugin path')%path).exec_()
@ -225,11 +228,11 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
'actual_iaction_plugin_loaded', False): 'actual_iaction_plugin_loaded', False):
return error_dialog(self, _('Must restart'), return error_dialog(self, _('Must restart'),
_('You must restart calibre before you can' _('You must restart calibre before you can'
' configure this plugin'), show=True) ' configure the <b>%s</b> plugin')%plugin.name, show=True)
if plugin.do_user_config(): if plugin.do_user_config():
self._plugin_model.refresh_plugin(plugin) self._plugin_model.refresh_plugin(plugin)
elif op == 'remove': elif op == 'remove':
msg = _('Plugin {0} successfully removed').format(plugin.name) msg = _('Plugin <b>{0}</b> successfully removed').format(plugin.name)
if remove_plugin(plugin): if remove_plugin(plugin):
self._plugin_model.populate() self._plugin_model.populate()
self._plugin_model.reset() self._plugin_model.reset()