Fix add columns screen going back to main prefs when launched from column header context menu. Fixes #1910929 [Enhancement Request: Preferences: Inconsistent behaviour of Discard button](https://bugs.launchpad.net/calibre/+bug/1910929)

This commit is contained in:
Kovid Goyal 2021-01-20 13:21:41 +05:30
parent c86bcede66
commit 58b4fd3fe3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -48,7 +48,7 @@ class LibraryViewMixin(object): # {{{
self.library_view.files_dropped.connect(self.iactions['Add Books'].files_dropped, type=Qt.ConnectionType.QueuedConnection) self.library_view.files_dropped.connect(self.iactions['Add Books'].files_dropped, type=Qt.ConnectionType.QueuedConnection)
self.library_view.books_dropped.connect(self.iactions['Edit Metadata'].books_dropped, type=Qt.ConnectionType.QueuedConnection) self.library_view.books_dropped.connect(self.iactions['Edit Metadata'].books_dropped, type=Qt.ConnectionType.QueuedConnection)
self.library_view.add_column_signal.connect(partial(self.iactions['Preferences'].do_config, self.library_view.add_column_signal.connect(partial(self.iactions['Preferences'].do_config,
initial_plugin=('Interface', 'Custom Columns')), initial_plugin=('Interface', 'Custom Columns'), close_after_initial=True),
type=Qt.ConnectionType.QueuedConnection) type=Qt.ConnectionType.QueuedConnection)
for func, args in [ for func, args in [
('connect_to_search_box', (self.search, ('connect_to_search_box', (self.search,