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