From 63c0f96795ea0bc6094a7ecf02bdd8e61cfa96a2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 25 Mar 2012 18:21:16 +0530 Subject: [PATCH] When a new plugin is added to calibre, add its icon (if any) to the second toolbar instead of the main one, by default (the user can change this during the plugin add process and afterwards) --- src/calibre/gui2/dialogs/choose_plugin_toolbars.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/dialogs/choose_plugin_toolbars.py b/src/calibre/gui2/dialogs/choose_plugin_toolbars.py index ddf8e162e8..fdfa9f4576 100644 --- a/src/calibre/gui2/dialogs/choose_plugin_toolbars.py +++ b/src/calibre/gui2/dialogs/choose_plugin_toolbars.py @@ -39,6 +39,9 @@ class ChoosePluginToolbarsDialog(QDialog): self._locations_list.setSizePolicy(sizePolicy) for key, text in locations: self._locations_list.addItem(text) + if key in {'toolbar-child',}: + self._locations_list.item(self._locations_list.count()-1 + ).setSelected(True) self._layout.addWidget(self._locations_list) self._footer_label = QLabel(