summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2009-09-05 10:52:37 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2009-09-05 10:52:37 +0800
commitbef54232d5b569b55ebbecba63d91fb959c325c2 (patch)
treed82ea022dcefa11c48922f7ba16d1c7460f8ab4c
parentf2fc6825815570bcf9f2668a02193f2e74e19379 (diff)
totem: don't unselect selectin if right button is clicked
-rw-r--r--totem/plugin/ppstream.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/totem/plugin/ppstream.py b/totem/plugin/ppstream.py
index 759d831..9bc81f5 100644
--- a/totem/plugin/ppstream.py
+++ b/totem/plugin/ppstream.py
@@ -1200,10 +1200,7 @@ class PPStream (totem.Plugin):
button = event.button
time = event.time
path = treeview.get_path_at_pos (int(event.x), int(event.y))
- if path and selection.path_is_selected (path[0]):
- selection.unselect_all ()
- selection.select_path (path[0])
- else:
+ if not path or selection.path_is_selected (path[0]):
selection.unselect_all ()
else:
time = gtk.get_current_event_time ()