~gosteven/+junk/gtg-gtask

« back to all changes in this revision

Viewing changes to GTG/gtk/browser/browser.py

  • Committer: Luca Invernizzi
  • Date: 2011-04-04 07:48:46 UTC
  • mfrom: (866.8.2 gtg_right)
  • Revision ID: invernizzi.l@gmail.com-20110404074846-pnassyws63qboccc
Fixing Bug #604293: Right click on a task doesn't change the selection

Show diffs side-by-side

added added

removed removed

Lines of Context:
901
901
            if pthinfo is not None:
902
902
                path, col, cellx, celly = pthinfo
903
903
                selection = treeview.get_selection()
904
 
                if selection.count_selected_rows() <= 0:
 
904
                if selection.count_selected_rows() > 0 :
 
905
                    if not selection.path_is_selected(path) :
 
906
                        treeview.set_cursor(path, col, 0)
 
907
                else :
905
908
                    treeview.set_cursor(path, col, 0)
906
 
                else:
907
 
                    selection.select_path(path)
908
909
                treeview.grab_focus()
909
910
                self.taskpopup.popup(None, None, None, event.button, time)
910
911
            return 1