From 81f081527da8e337df5eaaa2c8fd378f544bf518 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 24 Aug 2010 16:52:19 -0600 Subject: [PATCH] Mark library as current location when device detected --- src/calibre/gui2/layout.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/layout.py b/src/calibre/gui2/layout.py index 3f273f63fc..fccef29abe 100644 --- a/src/calibre/gui2/layout.py +++ b/src/calibre/gui2/layout.py @@ -97,6 +97,7 @@ class LocationManager(QObject): # {{{ self.free[2] = fs[2] if fs[2] is not None and cpb is not None else -1 self.update_tooltips() if self.has_device != had_device: + self.location_library.setChecked(True) self.locations_changed.emit() if not self.has_device: self.location_library.trigger()