From fd1b7996221cd42a9c52b1be74b8bbefb26fd46f Mon Sep 17 00:00:00 2001 From: John Schember Date: Fri, 5 Jun 2009 18:49:31 -0400 Subject: [PATCH] Hide eject button when leaving location_view. --- src/calibre/gui2/widgets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/widgets.py b/src/calibre/gui2/widgets.py index d6b9d7d8ed..08422a285b 100644 --- a/src/calibre/gui2/widgets.py +++ b/src/calibre/gui2/widgets.py @@ -257,6 +257,9 @@ class LocationView(QListView): if 0 <= row and row <= 3: self.model().location_changed(row) + def leaveEvent(self, event): + self.eject_button.hide() + def show_eject(self, location): self.eject_button.hide()