Hide eject button when leaving location_view.

This commit is contained in:
John Schember 2009-06-05 18:49:31 -04:00
parent 92877f804b
commit fd1b799622

View File

@ -257,6 +257,9 @@ class LocationView(QListView):
if 0 <= row and row <= 3: if 0 <= row and row <= 3:
self.model().location_changed(row) self.model().location_changed(row)
def leaveEvent(self, event):
self.eject_button.hide()
def show_eject(self, location): def show_eject(self, location):
self.eject_button.hide() self.eject_button.hide()