dag: Properly handle right-clicking in an empty area
commitc0f637696b3ce64cc519be9ae0ce6428378875a1
authorDavid Aguilar <davvid@gmail.com>
Tue, 24 Jan 2012 19:48:22 +0000 (24 11:48 -0800)
committerDavid Aguilar <davvid@gmail.com>
Tue, 24 Jan 2012 19:48:22 +0000 (24 11:48 -0800)
treef966968423f8c124bf468f67b6fe14a550453722
parent8c057f23c41a5c59884198d73b769b9e83277962
dag: Properly handle right-clicking in an empty area

update_menu_actions() assumed that there was always a clicked item
and thus we were trying to use None as a commit.

Add safety checks to avoid this problem and make it so that the 'copy'
action can be performed even when the right-click action happens in
an empty area.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/dag/view.py