Timeout when opening multiple book folders on OS X. See #1263426 (open containing folder doesn't open all folders)

This commit is contained in:
Kovid Goyal 2013-12-22 09:14:21 +05:30
parent 9658af0fe3
commit 6d2029b0f2

View File

@ -204,9 +204,11 @@ class ViewAction(InterfaceAction):
return
if not self._view_check(len(rows)):
return
for row in rows:
for i, row in enumerate(rows):
path = self.gui.library_view.model().db.abspath(row.row())
open_local_file(path)
if isosx and i < len(rows) - 1:
time.sleep(0.1) # Finder cannot handle multiple folder opens
def view_folder_for_id(self, id_):
path = self.gui.library_view.model().db.abspath(id_, index_is_id=True)