# HG changeset patch # User Yuki KODAMA <endflow....@gmail.com> # Date 1252251223 -32400 # Node ID 15847afbcddc76f639127407ea2873f9dff151e2 # Parent 5bdbec6e5a6fda70bc6390ce7e94be432f08f8d8 status: fix to avoid showing empty context menu
diff --git a/hggtk/status.py b/hggtk/status.py --- a/hggtk/status.py +++ b/hggtk/status.py @@ -1413,9 +1413,10 @@ for label, func, stats in self.get_custom_menus(): make(label, func, stats) - menu.show_all() - menu.popup(None, None, None, 0, 0) - return True + if len(menu.get_children()) > 0: + menu.show_all() + menu.popup(None, None, None, 0, 0) + return True def tree_key_press(self, tree, event): ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop