From 08cd44dbe2da6ef437e0cb52ae6af4fd15ee5485 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sat, 18 Aug 2007 19:15:10 +0200 Subject: [PATCH] Fix a warning. --- shell/view/clipboardmenu.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell/view/clipboardmenu.py b/shell/view/clipboardmenu.py index 7b0c52a8..0875f702 100644 --- a/shell/view/clipboardmenu.py +++ b/shell/view/clipboardmenu.py @@ -163,19 +163,22 @@ class ClipboardMenu(Palette): return jobject = self._copy_to_journal() jobject.resume(self._activities[0]) + jobject.destroy() def _open_submenu_item_activate_cb(self, menu_item, service_name): if self._percent < 100: return jobject = self._copy_to_journal() jobject.resume(service_name) + jobject.destroy() def _remove_item_activate_cb(self, menu_item): cb_service = clipboardservice.get_instance() cb_service.delete_object(self._object_id) def _journal_item_activate_cb(self, menu_item): - self._copy_to_journal() + jobject = self._copy_to_journal() + jobject.destroy() def _copy_to_journal(self): cb_service = clipboardservice.get_instance()