From 1c9c2c745ebed08c0192f731bd6d5bc5783e112a Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Mon, 26 Jan 2015 10:14:56 +0100 Subject: [PATCH] Disable VL tabs when in device view. --- src/calibre/gui2/ui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index 6b8cef2b8e..353e0b20b6 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -722,9 +722,11 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{ if location == 'library': self.virtual_library_menu.setEnabled(True) self.highlight_only_button.setEnabled(True) + self.vl_tabs.setEnabled(True) else: self.virtual_library_menu.setEnabled(False) self.highlight_only_button.setEnabled(False) + self.vl_tabs.setEnabled(False) # Reset the view in case something changed while it was invisible self.current_view().reset() self.set_number_of_books_shown()