From 6d2029b0f26441e6f5b9b2040f9cc2ebe9398a55 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 22 Dec 2013 09:14:21 +0530 Subject: [PATCH] Timeout when opening multiple book folders on OS X. See #1263426 (open containing folder doesn't open all folders) --- src/calibre/gui2/actions/view.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/actions/view.py b/src/calibre/gui2/actions/view.py index 05296cd065..72ea3c75a4 100644 --- a/src/calibre/gui2/actions/view.py +++ b/src/calibre/gui2/actions/view.py @@ -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)