mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 17:24:59 +01:00
...
This commit is contained in:
parent
58ef982a02
commit
bc926b392d
1 changed files with 4 additions and 1 deletions
|
|
@ -101,7 +101,10 @@ def current_item_activated(self, *args):
|
|||
i = self.items.currentItem()
|
||||
if i is not None:
|
||||
err = i.data(Qt.UserRole).toPyObject()
|
||||
self.item_activated.emit(err)
|
||||
if err.has_multiple_locations:
|
||||
self.location_activated(0)
|
||||
else:
|
||||
self.item_activated.emit(err)
|
||||
|
||||
def location_activated(self, index):
|
||||
i = self.items.currentItem()
|
||||
|
|
|
|||
Loading…
Reference in a new issue