diff --git a/mirage/__init__.py b/mirage/__init__.py index 285633e..e920aae 100755 --- a/mirage/__init__.py +++ b/mirage/__init__.py @@ -5947,9 +5947,6 @@ if os.path.isdir(item): self.searching_for_images = True self.update_statusbar() - if not self.closing_app: - while Gtk.events_pending(): - Gtk.main_iteration() first_image = "" first_image_found = False first_image_loaded = False @@ -6079,8 +6076,6 @@ second_image = self.image_list[itemnum] self.set_go_navigation_sensitivities(True) go_buttons_enabled = True - while Gtk.events_pending(): - Gtk.main_iteration() if not first_image_found: first_image_found = True first_image = self.image_list[itemnum] @@ -6111,9 +6106,6 @@ ) self.image_loaded = True first_image_loaded_successfully = True - if not self.closing_app: - while Gtk.events_pending(): - Gtk.main_iteration() except: print(traceback.format_exc(), file=sys.stderr) if first_image_came_from_dir: @@ -6147,9 +6139,6 @@ self.do_image_list_stuff(first_image, second_image) self.add_folderlist_images(folderlist, go_buttons_enabled) self.update_title() - if not self.closing_app: - while Gtk.events_pending(): - Gtk.main_iteration() if not first_image_loaded_successfully: self.image_load_failed(False, init_image) self.searching_for_images = False @@ -6196,8 +6185,6 @@ return False for item2 in os.listdir(item): if not self.closing_app and not self.stop_now: - while Gtk.events_pending(): - Gtk.main_iteration() item2 = item + os.sep + item2 item_fullpath2 = os.path.abspath(item2) if (