From eec37af75be3a585df3e7e1e0c9a3fc6f86e9b8d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 17 Sep 2012 09:38:24 +0530 Subject: [PATCH] Show the ignored devices panel when configuring the MTP plugin with no device connected --- src/calibre/gui2/device_drivers/mtp_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/device_drivers/mtp_config.py b/src/calibre/gui2/device_drivers/mtp_config.py index c6d2154229..d0ba5cb2e1 100644 --- a/src/calibre/gui2/device_drivers/mtp_config.py +++ b/src/calibre/gui2/device_drivers/mtp_config.py @@ -163,7 +163,7 @@ class IgnoredDevices(QWidget): # {{{ self.l = l = QVBoxLayout() self.setLayout(l) self.la = la = QLabel('

'+_( - '''Select the devices to be ignored. calibre will not + '''Select the devices to be ignored. calibre will not connect to devices with a checkmark next to their names.''')) la.setWordWrap(True) l.addWidget(la) @@ -386,7 +386,7 @@ class MTPConfig(QTabWidget): self.device.prefs['blacklist']) self.addTab(self.igntab, _('Ignored devices')) - self.setCurrentIndex(0) + self.setCurrentIndex(1 if msg else 0) def ignore_device(self): self.igntab.ignore_device(self.device.current_serial_num)